discourse/spec/system/page_objects/pages/group_form.rb
Ted Johansson 1a7303a35e
FIX: Amend broken group automatic member dialog (#31854)
When creating or editing a group, we are meant to show a dialog telling the admin how many members will be automatically added.
2025-03-18 19:37:37 +08:00

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