summaryrefslogtreecommitdiff
path: root/qa/qa/page/admin/settings/general.rb
blob: a2457dded7ca8d0e5c4d32b23a958f9c841e1b33 (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 General < Page::Base
          include QA::Page::Settings::Common

          view 'app/views/admin/application_settings/general.html.haml' do
            element :account_and_limit_settings_content
            element :sign_up_restrictions_settings_content
          end

          def expand_account_and_limit(&block)
            expand_content(:account_and_limit_settings_content) do
              Component::AccountAndLimit.perform(&block)
            end
          end

          def expand_sign_up_restrictions(&block)
            expand_content(:sign_up_restrictions_settings_content) do
              Component::SignUpRestrictions.perform(&block)
            end
          end
        end
      end
    end
  end
end