diff options
author | Dan Davison <ddavison@gitlab.com> | 2019-01-16 23:24:14 +0000 |
---|---|---|
committer | Dan Davison <ddavison@gitlab.com> | 2019-01-16 23:24:14 +0000 |
commit | 14c13c80432812507e9872385241b01dd8f9c89c (patch) | |
tree | 7d3e2886686f5fe97a7445f80f49305b730c1867 /qa | |
parent | c46b8e968ba926745418738cb8855f0ca23b97cd (diff) | |
parent | 519cb7578108356227836cee001fee9d95162b87 (diff) | |
download | gitlab-ce-14c13c80432812507e9872385241b01dd8f9c89c.tar.gz |
Merge branch '56043-failure-in-qa-specs-features-browser_ui-7_configure-auto_devops-create_project_with_auto_devops_spec-rb' into 'master'
Small screen fix for "Failure in qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb"
See merge request gitlab-org/gitlab-ce!24209
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/project/menu.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qa/qa/page/project/menu.rb b/qa/qa/page/project/menu.rb index a56031bb1eb..eb3426b1ac0 100644 --- a/qa/qa/page/project/menu.rb +++ b/qa/qa/page/project/menu.rb @@ -11,6 +11,7 @@ module QA element :settings_item element :settings_link, 'link_to edit_project_path' # 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 @@ -20,7 +21,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 @@ -125,6 +125,7 @@ module QA def hover_issues within_sidebar do + scroll_to_element(:issues_item) find_element(:issues_item).hover yield @@ -133,7 +134,8 @@ module QA def hover_operations within_sidebar do - find('.shortcuts-operations').hover + scroll_to_element(:link_operations) + find_element(:link_operations).hover yield end @@ -141,7 +143,8 @@ module QA def hover_settings within_sidebar do - find('.qa-settings-item').hover + scroll_to_element(:settings_item) + find_element(:settings_item).hover yield end |