diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /qa/qa/page/project/sub_menus/monitor.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'qa/qa/page/project/sub_menus/monitor.rb')
-rw-r--r-- | qa/qa/page/project/sub_menus/monitor.rb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/qa/qa/page/project/sub_menus/monitor.rb b/qa/qa/page/project/sub_menus/monitor.rb new file mode 100644 index 00000000000..e3593e0a257 --- /dev/null +++ b/qa/qa/page/project/sub_menus/monitor.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +module QA + module Page + module Project + module SubMenus + module Monitor + extend QA::Page::PageConcern + + def self.included(base) + super + + base.class_eval do + include QA::Page::Project::SubMenus::Common + end + end + + def go_to_monitor_metrics + hover_monitor do + within_submenu do + click_element(:sidebar_menu_item_link, menu_item: 'Metrics') + end + end + end + + def go_to_monitor_incidents + hover_monitor do + within_submenu do + click_element(:sidebar_menu_item_link, menu_item: 'Incidents') + end + end + end + + private + + def hover_monitor + within_sidebar do + scroll_to_element(:sidebar_menu_link, menu_item: 'Monitor') + find_element(:sidebar_menu_link, menu_item: 'Monitor').hover + + yield + end + end + end + end + end + end +end |