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

ip_limits.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: 1f9bd113cab93fa51714e9fe41c369df3bdc7069 (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
        module Component
          class IpLimits < Page::Base
            view 'app/views/admin/application_settings/_ip_limits.html.haml' do
              element :throttle_unauthenticated_checkbox
              element :throttle_authenticated_api_checkbox
              element :throttle_authenticated_web_checkbox
              element :save_changes_button
            end

            def enable_throttles
              check_element(:throttle_unauthenticated_checkbox)
              check_element(:throttle_authenticated_api_checkbox)
              check_element(:throttle_authenticated_web_checkbox)
            end

            def save_settings
              click_element :save_changes_button
            end
          end
        end
      end
    end
  end
end