diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-09 21:09:18 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-09 21:09:18 +0000 |
commit | ab5672c13d7fe5c79fdeac10e7505187cf4ba606 (patch) | |
tree | eb7036d6e4c8ce64c58f18185eced3a5e315c099 /qa | |
parent | d23f33082ad893fad172b17f1ce66bd847671d56 (diff) | |
download | gitlab-ce-ab5672c13d7fe5c79fdeac10e7505187cf4ba606.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/main/menu.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/qa/qa/page/main/menu.rb b/qa/qa/page/main/menu.rb index 2deca64a9ac..bd2672ffadc 100644 --- a/qa/qa/page/main/menu.rb +++ b/qa/qa/page/main/menu.rb @@ -104,10 +104,14 @@ module QA end def go_to_groups - return click_element(:nav_item_link, submenu_item: 'Groups') if Runtime::Env.super_sidebar_enabled? - - # Use new functionality to visit Groups where possible - if has_element?(:sidebar_menu_link, menu_item: 'Groups') + # This needs to be fixed in the tests themselves. Fullfillment tests try to go to groups view from the + # group. Instead of having a global hack, explicit test should navigate to correct view first. + # see: https://gitlab.com/gitlab-org/gitlab/-/issues/403589#note_1383040061 + if Runtime::Env.super_sidebar_enabled? + go_to_your_work unless has_element?(:nav_item_link, submenu_item: 'Groups', wait: 0) + click_element(:nav_item_link, submenu_item: 'Groups') + elsif has_element?(:sidebar_menu_link, menu_item: 'Groups') + # Use new functionality to visit Groups where possible click_element(:sidebar_menu_link, menu_item: 'Groups') else # Otherwise fallback to previous functionality |