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

network.rb « settings « admin « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ccd7bc3a4dd418e5b34d850a4966a5eaabaf791e (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
# frozen_string_literal: true

module QA
  module Page
    module Admin
      module Settings
        class Network < Page::Base
          include QA::Page::Settings::Common

          view 'app/views/admin/application_settings/network.html.haml' do
            element 'ip-limits-content'
            element 'outbound-requests-content'
          end

          def expand_ip_limits(&block)
            expand_content('ip-limits-content') do
              Component::IpLimits.perform(&block)
            end
          end

          def expand_outbound_requests(&block)
            expand_content('outbound-requests-content') do
              Component::OutboundRequests.perform(&block)
            end
          end
        end
      end
    end
  end
end