summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/settings/ci_cd.rb
blob: 99be21bbe89120dbfe10eddf9bcb83cbc31db272 (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
module QA
  module Page
    module Project
      module Settings
        class CICD < Page::Base
          include Common

          view 'app/views/projects/settings/ci_cd/show.html.haml' do
            element :runners_settings, 'Runners settings'
            element :secret_variables, 'Secret variables'
          end

          def expand_runners_settings(&block)
            expand_section('Runners settings') do
              Settings::Runners.perform(&block)
            end
          end

          def expand_secret_variables(&block)
            expand_section('Secret variables') do
              Settings::SecretVariables.perform(&block)
            end
          end
        end
      end
    end
  end
end