diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-23 18:09:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-23 18:09:21 +0300 |
commit | 228eb2ee910e2fb7f9bedf713c43a30c55cf3314 (patch) | |
tree | 65ce01b9098ff425aa0389ca3f33bd8fdbe04dc1 /qa | |
parent | ab8eecd62cc11a31568b25304f5fd31c8b7f437f (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, 27 insertions, 6 deletions
diff --git a/qa/qa/page/group/menu.rb b/qa/qa/page/group/menu.rb index 338a135614d..a6f7b820857 100644 --- a/qa/qa/page/group/menu.rb +++ b/qa/qa/page/group/menu.rb @@ -9,11 +9,8 @@ module QA view 'app/views/layouts/nav/sidebar/_group_menus.html.haml' do element :general_settings_link element :group_issues_item - element :group_members_item element :group_milestones_link element :group_settings - element :group_information_link - element :group_information_submenu end view 'app/views/groups/sidebar/_packages_settings.html.haml' do @@ -26,9 +23,17 @@ module QA end def click_group_members_item - hover_element(:group_information_link) do - within_submenu(:group_information_submenu) do - click_element(:group_members_item) + hover_group_information do + within_submenu do + click_element(:sidebar_menu_item_link, menu_item: 'Members') + end + end + end + + def click_subgroup_members_item + hover_subgroup_information do + within_submenu do + click_element(:sidebar_menu_item_link, menu_item: 'Members') end end end @@ -82,6 +87,22 @@ module QA yield end end + + def hover_group_information + within_sidebar do + find_element(:sidebar_menu_link, menu_item: 'Group information').hover + + yield + end + end + + def hover_subgroup_information + within_sidebar do + find_element(:sidebar_menu_link, menu_item: 'Subgroup information').hover + + yield + end + end end end end |