Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/sub_menus/super_sidebar/context_switcher.rb')
-rw-r--r--qa/qa/page/sub_menus/super_sidebar/context_switcher.rb56
1 files changed, 0 insertions, 56 deletions
diff --git a/qa/qa/page/sub_menus/super_sidebar/context_switcher.rb b/qa/qa/page/sub_menus/super_sidebar/context_switcher.rb
deleted file mode 100644
index af06438782d..00000000000
--- a/qa/qa/page/sub_menus/super_sidebar/context_switcher.rb
+++ /dev/null
@@ -1,56 +0,0 @@
-# frozen_string_literal: true
-
-module QA
- module Page
- module SubMenus
- module SuperSidebar
- module ContextSwitcher
- extend QA::Page::PageConcern
-
- def self.prepended(base)
- super
-
- base.class_eval do
- view 'app/assets/javascripts/super_sidebar/components/context_switcher_toggle.vue' do
- element 'context-switcher'
- end
-
- view 'app/assets/javascripts/super_sidebar/components/context_switcher.vue' do
- element 'context-navigation'
- end
- end
- end
-
- def go_to_your_work
- go_to_context("Your work")
- end
-
- def go_to_explore
- go_to_context("Explore")
- end
-
- def go_to_admin_area
- go_to_context("Admin Area")
- end
-
- def has_admin_area_link?(wait: Capybara.default_max_wait_time)
- open_context_switcher
-
- has_element?(:nav_item_link, submenu_item: "Admin Area", wait: wait)
- end
-
- private
-
- def go_to_context(sub_menu)
- open_context_switcher
- click_element(:nav_item_link, submenu_item: sub_menu)
- end
-
- def open_context_switcher
- click_element('context-switcher') unless has_element?('context-navigation', wait: 0)
- end
- end
- end
- end
- end
-end