summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-08-26 00:21:30 -0700
committerStan Hu <stanhu@gmail.com>2017-08-26 00:21:30 -0700
commitf2c60eba25fc001974a61373bc380528416932a2 (patch)
tree96d9a94f7c119489c410ce3790858f110f59f437
parent07e95212d2b9fe0e96501221fe639cc0d74a7cea (diff)
downloadgitlab-ce-f2c60eba25fc001974a61373bc380528416932a2.tar.gz
Fix create branch Spinach spec
-rw-r--r--features/steps/project/commits/branches.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/features/steps/project/commits/branches.rb b/features/steps/project/commits/branches.rb
index 93f5e291aff..6d019a38fe1 100644
--- a/features/steps/project/commits/branches.rb
+++ b/features/steps/project/commits/branches.rb
@@ -79,11 +79,7 @@ class Spinach::Features::ProjectCommitsBranches < Spinach::FeatureSteps
end
def select_branch(branch_name)
- within('#new-branch-form') do
- find('.dropdown').click
- end
-
- click_button 'master'
+ find('.git-revision-dropdown-toggle').click
page.within '#new-branch-form .dropdown-menu' do
click_link branch_name