debian-mirror-gitlab/spec/support/target_branch_helpers.rb
2017-08-17 22:00:37 +05:30

16 lines
392 B
Ruby

module TargetBranchHelpers
def select_branch(name)
first('button.js-target-branch').click
wait_for_ajax
all('a[data-group="Branches"]').find do |el|
el.text == name
end.click
end
def create_new_branch(name)
first('button.js-target-branch').click
click_link 'Create new branch'
fill_in 'new_branch_name', with: name
click_button 'Create'
end
end