Commit 7aeddde1 authored by Mark Lapierre's avatar Mark Lapierre

Method go_to_activity isn't private

Also order methods alphabetically
parent a1d9a3c3
...@@ -29,11 +29,9 @@ module QA ...@@ -29,11 +29,9 @@ module QA
element :fly_out, "classList.add('fly-out-list')" # rubocop:disable QA/ElementWithPattern element :fly_out, "classList.add('fly-out-list')" # rubocop:disable QA/ElementWithPattern
end end
def click_repository_settings def click_ci_cd_pipelines
hover_settings do within_sidebar do
within_submenu do click_element :link_pipelines
click_link('Repository')
end
end end
end end
...@@ -45,11 +43,9 @@ module QA ...@@ -45,11 +43,9 @@ module QA
end end
end end
def click_operations_environments def click_issues
hover_operations do within_sidebar do
within_submenu do click_link('Issues')
click_element(:operations_environments_link)
end
end end
end end
...@@ -61,61 +57,71 @@ module QA ...@@ -61,61 +57,71 @@ module QA
end end
end end
def click_operations_kubernetes def click_merge_requests
within_sidebar do
click_link('Merge Requests')
end
end
def click_operations_environments
hover_operations do hover_operations do
within_submenu do within_submenu do
click_link('Kubernetes') click_element(:operations_environments_link)
end end
end end
end end
def click_ci_cd_pipelines def click_operations_kubernetes
within_sidebar do hover_operations do
click_element :link_pipelines within_submenu do
click_link('Kubernetes')
end
end end
end end
def go_to_settings def click_milestones
within_sidebar do within_sidebar do
click_on 'Settings' click_element :milestones_link
end end
end end
def click_issues def click_repository
within_sidebar do within_sidebar do
click_link('Issues') click_link('Repository')
end end
end end
def go_to_labels def click_repository_settings
hover_issues do hover_settings do
within_submenu do within_submenu do
click_element(:labels_link) click_link('Repository')
end end
end end
end end
def click_merge_requests def click_wiki
within_sidebar do within_sidebar do
click_link('Merge Requests') click_link('Wiki')
end end
end end
def click_milestones def go_to_activity
within_sidebar do within_sidebar do
click_element :milestones_link click_on 'Activity'
end end
end end
def click_wiki def go_to_labels
within_sidebar do hover_issues do
click_link('Wiki') within_submenu do
click_element(:labels_link)
end
end end
end end
def click_repository def go_to_settings
within_sidebar do within_sidebar do
click_link('Repository') click_on 'Settings'
end end
end end
...@@ -129,17 +135,17 @@ module QA ...@@ -129,17 +135,17 @@ module QA
end end
end end
def hover_settings def hover_operations
within_sidebar do within_sidebar do
find('.qa-settings-item').hover find('.shortcuts-operations').hover
yield yield
end end
end end
def hover_operations def hover_settings
within_sidebar do within_sidebar do
find('.shortcuts-operations').hover find('.qa-settings-item').hover
yield yield
end end
...@@ -151,12 +157,6 @@ module QA ...@@ -151,12 +157,6 @@ module QA
end end
end end
def go_to_activity
within_sidebar do
click_on 'Activity'
end
end
def within_submenu def within_submenu
page.within('.fly-out-list') do page.within('.fly-out-list') do
yield yield
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment