diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-08-17 17:05:32 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-08-17 17:05:32 +0200 |
commit | 50c2efea03685532024e32e2c1376cac4ed0f904 (patch) | |
tree | 7e76611e4ef5127c42d2761918d43ba67bb96ec7 /features | |
parent | 27cf081e1b0b1df1661aaf0ae6b60b05ef3eb8d8 (diff) | |
download | gitlab-ce-50c2efea03685532024e32e2c1376cac4ed0f904.tar.gz |
don't lookup branch element - it might need to be escaped
Diffstat (limited to 'features')
-rw-r--r-- | features/project/commits/branches.feature | 6 | ||||
-rw-r--r-- | features/steps/project/browse_branches.rb | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/features/project/commits/branches.feature b/features/project/commits/branches.feature index abebef04fcd..d657bd4951f 100644 --- a/features/project/commits/branches.feature +++ b/features/project/commits/branches.feature @@ -17,3 +17,9 @@ Feature: Project Browse branches And I click new branch link When I submit new branch form Then I should see new branch created + + @javascript + Scenario: I delete a branch + Given I visit project branches page + And I click branch 'improve/awesome' delete link + Then I should not see branch 'improve/awesome' diff --git a/features/steps/project/browse_branches.rb b/features/steps/project/browse_branches.rb index 7a0625952de..c00a95a62fd 100644 --- a/features/steps/project/browse_branches.rb +++ b/features/steps/project/browse_branches.rb @@ -43,4 +43,15 @@ class ProjectBrowseBranches < Spinach::FeatureSteps page.should have_content 'deploy_keys' end end + + step "I click branch 'improve/awesome' delete link" do + within '.js-branch-improve\/awesome' do + find('.btn-remove').click + sleep 0.05 + end + end + + step "I should not see branch 'improve/awesome'" do + page.all(visible: true).should_not have_content 'improve/awesome' + end end |