mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 17:12:11 +08:00
When creating or editing a group, we are meant to show a dialog telling the admin how many members will be automatically added.
27 lines
646 B
Ruby
27 lines
646 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Pages
|
|
class GroupForm < PageObjects::Pages::Base
|
|
def add_automatic_email_domain(domain)
|
|
select_kit =
|
|
PageObjects::Components::SelectKit.new(".group-form-automatic-membership-automatic")
|
|
select_kit.expand
|
|
select_kit.search(domain)
|
|
select_kit.select_row_by_value(domain)
|
|
self
|
|
end
|
|
|
|
def click_save
|
|
page.find(".group-form-save").click
|
|
self
|
|
end
|
|
|
|
private
|
|
|
|
def automatic_email_domain_multi_select
|
|
page.find(".group-form-automatic-membership-automatic")
|
|
end
|
|
end
|
|
end
|
|
end
|