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

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

module QA
  module Page
    module Admin
      module Settings
        module Component
          class OutboundRequests < Page::Base
            view 'app/views/admin/application_settings/_outbound.html.haml' do
              element :allow_requests_from_services_checkbox
              element :save_changes_button
            end

            def allow_requests_to_local_network_from_services
              check_allow_requests_to_local_network_from_services_checkbox
              click_save_changes_button
            end

            private

            def check_allow_requests_to_local_network_from_services_checkbox
              check_element(:allow_requests_from_services_checkbox)
            end

            def click_save_changes_button
              click_element :save_changes_button
            end
          end
        end
      end
    end
  end
end