summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/settings/repository.rb
blob: 30900e74e90fe5d0d1553ec3ebbfbfac2a9031cc (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
module QA
  module Page
    module Project
      module Settings
        class Repository < Page::Base
          include Common

          view 'app/views/projects/deploy_keys/_index.html.haml' do
            element :deploy_keys_section, 'Deploy Keys'
          end

          def expand_deploy_keys(&block)
            expand_section('Deploy Keys') do
              DeployKeys.perform(&block)
            end
          end

          def expand_protected_branches(&block)
            expand_section('Protected Branches') do
              ProtectedBranches.perform(&block)
            end
          end
        end
      end
    end
  end
end