summaryrefslogtreecommitdiff
path: root/qa/qa/page/admin/settings/network.rb
blob: 83566d3d1ca590556252ac5588fdb41f4c9367ef (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_section
            element :outbound_requests_section
          end

          def expand_ip_limits(&block)
            expand_section(:ip_limits_section) do
              Component::IpLimits.perform(&block)
            end
          end

          def expand_outbound_requests(&block)
            expand_section(:outbound_requests_section) do
              Component::OutboundRequests.perform(&block)
            end
          end
        end
      end
    end
  end
end