Skip to content

A platform for community discussion. Free, open, simple.

646 B
Raw Blame
# 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