summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-08-23 23:29:05 -0700
committerStan Hu <stanhu@gmail.com>2017-08-23 23:29:05 -0700
commit4ab7d2f9401e46185ca90e21019af8f42bb485d7 (patch)
tree0734120e9ff670717c5129ad62f22a1e9253fba2
parent55e5c84e2c6ed17c52bb31ee94552083fa1c9b07 (diff)
downloadgitlab-ce-4ab7d2f9401e46185ca90e21019af8f42bb485d7.tar.gz
Fix branch creation Spinach test by clicking on the dropdown
-rw-r--r--features/steps/project/commits/branches.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/project/commits/branches.rb b/features/steps/project/commits/branches.rb
index 080e59f789b..93f5e291aff 100644
--- a/features/steps/project/commits/branches.rb
+++ b/features/steps/project/commits/branches.rb
@@ -79,6 +79,10 @@ class Spinach::Features::ProjectCommitsBranches < Spinach::FeatureSteps
end
def select_branch(branch_name)
+ within('#new-branch-form') do
+ find('.dropdown').click
+ end
+
click_button 'master'
page.within '#new-branch-form .dropdown-menu' do