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

sign_up_restrictions.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: 9909155641f0b5b42eb3f6b6d7e12be29733a280 (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
# frozen_string_literal: true

module QA
  module Page
    module Admin
      module Settings
        module Component
          class SignUpRestrictions < Page::Base
            view 'app/views/admin/application_settings/_signup.html.haml' do
              element :require_admin_approval_after_user_signup_checkbox
              element :signup_enabled_checkbox
              element :save_changes_button
            end

            def require_admin_approval_after_user_signup
              check_element(:require_admin_approval_after_user_signup_checkbox)
              click_element(:save_changes_button)
            end

            def disable_signups
              uncheck_element(:signup_enabled_checkbox)
              click_element(:save_changes_button)
            end
          end
        end
      end
    end
  end
end