Welcome to mirror list, hosted at ThFree Co, Russian Federation.

target_branch_helpers.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 01d1c53fe6cbc28d4ab2da3533748fb0531b43f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module TargetBranchHelpers
  def select_branch(name)
    first('button.js-target-branch').click
    wait_for_requests
    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