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: ec918d063662ee934dbe7aad1b4d4cc94b3fdeca (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/assets/javascripts/pages/admin/application_settings/general/components/signup_form.vue' do
              element 'require-admin-approval-checkbox'
              element 'signup-enabled-checkbox'
              element 'save-changes-button'
            end

            def require_admin_approval_after_user_signup
              click_element_coordinates('require-admin-approval-after-user-signup-checkbox', visible: false)
              click_element('save-changes-button')
            end

            def disable_signups
              click_element_coordinates('signup-enabled-checkbox', visible: false)
              click_element('save-changes-button')
            end
          end
        end
      end
    end
  end
end