blob: 401d75fd1ceda0bbed5f67da1d41368c9351bfe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# frozen_string_literal: true
module QA
module Page
module Project
module Settings
class BranchRules < Page::Base
view 'app/assets/javascripts/projects/settings/repository/branch_rules/app.vue' do
element 'add-branch-rule-button'
end
view 'app/assets/javascripts/projects/settings/repository/branch_rules/components/branch_rule.vue' do
element 'branch-content'
element 'details-button'
end
def click_add_branch_rule
click_element('add-branch-rule-button')
click_button('Create protected branch')
end
def navigate_to_branch_rules_details(branch_name)
within_element('branch-content', branch_name: branch_name) do
click_element('details-button')
end
end
end
end
end
end
end
QA::Page::Project::Settings::BranchRules.prepend_mod_with('Page::Project::Settings::BranchRules', namespace: QA)
|