summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/sub_menus/infrastructure.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/sub_menus/infrastructure.rb')
-rw-r--r--qa/qa/page/project/sub_menus/infrastructure.rb40
1 files changed, 40 insertions, 0 deletions
diff --git a/qa/qa/page/project/sub_menus/infrastructure.rb b/qa/qa/page/project/sub_menus/infrastructure.rb
new file mode 100644
index 00000000000..2c207022c8d
--- /dev/null
+++ b/qa/qa/page/project/sub_menus/infrastructure.rb
@@ -0,0 +1,40 @@
+# frozen_string_literal: true
+
+module QA
+ module Page
+ module Project
+ module SubMenus
+ module Infrastructure
+ extend QA::Page::PageConcern
+
+ def self.included(base)
+ super
+
+ base.class_eval do
+ include QA::Page::Project::SubMenus::Common
+ end
+ end
+
+ def go_to_infrastructure_kubernetes
+ hover_infrastructure do
+ within_submenu do
+ click_link('Kubernetes clusters')
+ end
+ end
+ end
+
+ private
+
+ def hover_infrastructure
+ within_sidebar do
+ scroll_to_element(:sidebar_menu_link, menu_item: 'Infrastructure')
+ find_element(:sidebar_menu_link, menu_item: 'Infrastructure').hover
+
+ yield
+ end
+ end
+ end
+ end
+ end
+ end
+end