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

menu.rb « admin « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4b802e1015702182c3ff17b5ed33cac2c1e5f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# frozen_string_literal: true

module QA
  module Page
    module Admin
      class Menu < Page::Base
        include SubMenus::Common
        include Sidebar::Overview
        include Sidebar::Settings

        view 'lib/sidebars/admin/menus/admin_overview_menu.rb' do
          element 'admin-overview-submenu-content'
        end

        view 'lib/sidebars/admin/menus/analytics_menu.rb' do
          element 'admin-sidebar-analytics-submenu-content'
        end

        view 'lib/sidebars/admin/menus/monitoring_menu.rb' do
          element 'admin-monitoring-menu-link'
        end

        def go_to_applications
          click_element('nav-item-link', submenu_item: 'Applications')
        end
      end
    end
  end
end

QA::Page::Admin::Menu.prepend_mod_with('Page::Admin::Menu', namespace: QA)