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
element :fly_out, "classList.add('fly-out-list')" # rubocop:disable QA/ElementWithPattern
end
def click_repository_settings
hover_settings do
within_submenu do
click_link('Repository')
end
def click_ci_cd_pipelines
within_sidebar do
click_element :link_pipelines
end
end
......@@ -45,11 +43,9 @@ module QA
end
end
def click_operations_environments
hover_operations do
within_submenu do
click_element(:operations_environments_link)
end
def click_issues
within_sidebar do
click_link('Issues')
end
end
......@@ -61,61 +57,71 @@ module QA
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
within_submenu do
click_link('Kubernetes')
click_element(:operations_environments_link)
end
end
end
def click_ci_cd_pipelines
within_sidebar do
click_element :link_pipelines
def click_operations_kubernetes
hover_operations do
within_submenu do
click_link('Kubernetes')
end
end
end
def go_to_settings
def click_milestones
within_sidebar do
click_on 'Settings'
click_element :milestones_link
end
end
def click_issues
def click_repository
within_sidebar do
click_link('Issues')
click_link('Repository')
end
end
def go_to_labels
hover_issues do
def click_repository_settings
hover_settings do
within_submenu do
click_element(:labels_link)
click_link('Repository')
end
end
end
def click_merge_requests
def click_wiki
within_sidebar do
click_link('Merge Requests')
click_link('Wiki')
end
end
def click_milestones
def go_to_activity
within_sidebar do
click_element :milestones_link
click_on 'Activity'
end
end
def click_wiki
within_sidebar do
click_link('Wiki')
def go_to_labels
hover_issues do
within_submenu do
click_element(:labels_link)
end
end
end
def click_repository
def go_to_settings
within_sidebar do
click_link('Repository')
click_on 'Settings'
end
end
......@@ -129,17 +135,17 @@ module QA
end
end
def hover_settings
def hover_operations
within_sidebar do
find('.qa-settings-item').hover
find('.shortcuts-operations').hover
yield
end
end
def hover_operations
def hover_settings
within_sidebar do
find('.shortcuts-operations').hover
find('.qa-settings-item').hover
yield
end
......@@ -151,12 +157,6 @@ module QA
end
end
def go_to_activity
within_sidebar do
click_on 'Activity'
end
end
def within_submenu
page.within('.fly-out-list') do
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