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

module QA
  module Page
    module Project
      module SubMenus
        module CiCd
          def self.included(base)
            base.class_eval do
              view 'app/views/layouts/nav/sidebar/_project.html.haml' do
                element :link_pipelines
              end
            end
          end

          def click_ci_cd_pipelines
            within_sidebar do
              click_element :link_pipelines
            end
          end
        end
      end
    end
  end
end