diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-17 18:10:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-17 18:10:19 +0300 |
commit | 20dbd96076a6d09d20a9ac3caa1f35506d82340b (patch) | |
tree | b73108888721577cf4cb28640cbb6067616dfcd5 /qa | |
parent | b487021bd3f785d6348c13746fda6ce9043a99c5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/group/menu.rb | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/qa/qa/page/group/menu.rb b/qa/qa/page/group/menu.rb index 7f8d3de4b4c..c997598e25a 100644 --- a/qa/qa/page/group/menu.rb +++ b/qa/qa/page/group/menu.rb @@ -6,15 +6,6 @@ module QA class Menu < Page::Base include SubMenus::Common - view 'app/views/layouts/nav/sidebar/_group_menus.html.haml' do - element :general_settings_link - element :group_settings - end - - view 'app/views/groups/sidebar/_packages_settings.html.haml' do - element :group_package_settings_link - end - def click_group_members_item hover_group_information do within_submenu do @@ -33,14 +24,14 @@ module QA def click_settings within_sidebar do - click_element(:group_settings) + click_element(:sidebar_menu_link, menu_item: 'Settings') end end def click_group_general_settings_item - hover_element(:group_settings) do - within_submenu(:group_sidebar_submenu) do - click_element(:general_settings_link) + hover_group_settings do + within_submenu do + click_element(:sidebar_menu_item_link, menu_item: 'General') end end end @@ -54,10 +45,9 @@ module QA end def go_to_package_settings - scroll_to_element(:group_settings) - hover_element(:group_settings) do - within_submenu(:group_sidebar_submenu) do - click_element(:group_package_settings_link) + hover_group_settings do + within_submenu do + click_element(:sidebar_menu_item_link, menu_item: 'Packages & Registries') end end end @@ -113,6 +103,15 @@ module QA yield end end + + def hover_group_settings + within_sidebar do + scroll_to_element(:sidebar_menu_link, menu_item: 'Settings') + find_element(:sidebar_menu_link, menu_item: 'Settings').hover + + yield + end + end end end end |