Skip to content
Snippets Groups Projects
Commit 080bd12e authored by Nihad Abbasov's avatar Nihad Abbasov
Browse files

rewrite project commits features using spinach

parent 7aeb92b8
No related branches found
No related tags found
1 merge request!1426Cucumber => Spinach
Showing
with 65 additions and 18 deletions
Feature: Browse branches
Background:
Given I signin as a user
Feature: Project Browse branches
Background:
Given I sign in as a user
And I own project "Shop"
And project "Shop" has protected branches
Given I visit project branches page
Loading
Loading
@@ -16,8 +16,11 @@ Feature: Browse branches
Given I click link "Protected"
Then I should see "Shop" protected branches list
 
Scenario: I can download project by branch
# @wip
# Scenario: I can download project by branch
 
Scenario: I can view protected branches
# @wip
# Scenario: I can view protected branches
 
Scenario: I can manage protected branches
# @wip
# Scenario: I can manage protected branches
Feature: Comment commit
Background:
Given I signin as a user
Feature: Project Comment commit
Background:
Given I sign in as a user
And I own project "Shop"
Given I visit project commit page
 
Loading
Loading
Feature: Browse commits
Background:
Given I signin as a user
Feature: Project Browse commits
Background:
Given I sign in as a user
And I own project "Shop"
Given I visit project commits page
 
Loading
Loading
@@ -18,5 +18,4 @@ Feature: Browse commits
Scenario: I compare refs
Given I visit compare refs page
And I fill compare fields with refs
And I see compared refs
And I see compared refs
Feature: Browse tags
Background:
Given I signin as a user
Feature: Project Browse tags
Background:
Given I sign in as a user
And I own project "Shop"
Given I visit project tags page
 
Scenario: I can see all git tags
Then I should see "Shop" all tags list
 
Scenario: I can download project by tag
# @wip
# Scenario: I can download project by tag
File moved
File moved
class ProjectBrowseBranches < Spinach::FeatureSteps
Then 'I should see "Shop" recent branches list' do
page.should have_content "Branches"
page.should have_content "master"
end
Given 'I click link "All"' do
click_link "All"
end
Then 'I should see "Shop" all branches list' do
page.should have_content "Branches"
page.should have_content "master"
end
Given 'I click link "Protected"' do
click_link "Protected"
end
Then 'I should see "Shop" protected branches list' do
within "table" do
page.should have_content "stable"
page.should_not have_content "master"
end
end
Given 'I sign in as a user' do
login_as :user
end
And 'I own project "Shop"' do
@project = Factory :project, :name => "Shop"
@project.add_access(@user, :admin)
end
And 'project "Shop" has protected branches' do
project = Project.find_by_name("Shop")
project.protected_branches.create(:name => "stable")
end
Given 'I visit project branches page' do
visit branches_project_repository_path(@project)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment