summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/sub_menus/project.rb
blob: 89d4ed578ed091a715734c3115b137ab9831be21 (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
# frozen_string_literal: true

module QA
  module Page
    module Project
      module SubMenus
        module Project
          extend QA::Page::PageConcern

          def self.included(base)
            super

            base.class_eval do
              include QA::Page::Project::SubMenus::Common
            end
          end

          def click_project
            retry_on_exception do
              within_sidebar do
                click_element(:sidebar_menu_link, menu_item: 'Project scope')
              end
            end
          end
        end
      end
    end
  end
end