Commit 5a1429ae authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix branches tests

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 1bb9aeb5
......@@ -3,20 +3,17 @@ Feature: Project Browse branches
Given I sign in as a user
And I own project "Shop"
And project "Shop" has protected branches
Given I visit project branches page
Scenario: I can see project recent git branches
Then I should see "Shop" recent branches list
Scenario: I can see project all git branches
Given I click link "All"
Given I visit project branches page
Then I should see "Shop" all branches list
Scenario: I can see project protected git branches
Given I click link "Protected"
Given I visit project protected branches page
Then I should see "Shop" protected branches list
Scenario: I create a branch
Given I click new branch link
Given I visit project branches page
And I click new branch link
When I submit new branch form
Then I should see new branch created
......@@ -3,11 +3,6 @@ class ProjectBrowseBranches < Spinach::FeatureSteps
include SharedProject
include SharedPaths
step 'I should see "Shop" recent branches list' do
page.should have_content "Branches"
page.should have_content "master"
end
step 'I click link "All"' do
click_link "All"
end
......
......@@ -240,6 +240,10 @@ module SharedPaths
visit project_branches_path(@project)
end
step 'I visit project protected branches page' do
visit project_protected_branches_path(@project)
end
step 'I visit compare refs page' do
visit project_compare_index_path(@project)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment