summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorJames Fargher <proglottis@gmail.com>2019-01-16 10:54:04 +1300
committerJames Fargher <proglottis@gmail.com>2019-01-17 10:42:48 +1300
commit519cb7578108356227836cee001fee9d95162b87 (patch)
tree7a295d920503c7c6d6c19aeaba4107c2bc2f83a8 /qa
parentaea036c70d4f4f8ecd2e2cf86f913e667d1d604f (diff)
downloadgitlab-ce-519cb7578108356227836cee001fee9d95162b87.tar.gz
Try use elements for all project menu nav in qa
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/project/menu.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/qa/qa/page/project/menu.rb b/qa/qa/page/project/menu.rb
index 57ef844672c..d99f9ee37f9 100644
--- a/qa/qa/page/project/menu.rb
+++ b/qa/qa/page/project/menu.rb
@@ -9,6 +9,7 @@ module QA
element :settings_link, 'link_to edit_project_path' # rubocop:disable QA/ElementWithPattern
element :repository_link, "title: _('Repository')" # rubocop:disable QA/ElementWithPattern
element :link_pipelines
+ element :link_operations
element :link_members_settings
element :pipelines_settings_link, "title: _('CI / CD')" # rubocop:disable QA/ElementWithPattern
element :operations_kubernetes_link, "title: _('Kubernetes')" # rubocop:disable QA/ElementWithPattern
@@ -18,7 +19,6 @@ module QA
element :merge_requests_link, /link_to.*shortcuts-merge_requests/ # rubocop:disable QA/ElementWithPattern
element :merge_requests_link_text, "Merge Requests" # rubocop:disable QA/ElementWithPattern
element :top_level_items, '.sidebar-top-level-items' # rubocop:disable QA/ElementWithPattern
- element :operations_section, "class: 'shortcuts-operations'" # rubocop:disable QA/ElementWithPattern
element :activity_link, "title: _('Activity')" # rubocop:disable QA/ElementWithPattern
element :wiki_link_text, "Wiki" # rubocop:disable QA/ElementWithPattern
element :milestones_link
@@ -138,8 +138,8 @@ module QA
def hover_operations
within_sidebar do
- scroll_to('.shortcuts-operations')
- find('.shortcuts-operations').hover
+ scroll_to_element(:link_operations)
+ find_element(:link_operations).hover
yield
end
@@ -147,8 +147,8 @@ module QA
def hover_settings
within_sidebar do
- scroll_to('.qa-settings-item')
- find('.qa-settings-item').hover
+ scroll_to_element(:settings_item)
+ find_element(:settings_item).hover
yield
end