discourse/spec/system/page_objects/modals/reject_reason_reviewable.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
631 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module PageObjects
module Modals
class RejectReasonReviewable < PageObjects::Modals::Base
def modal
find(".reject-reason-reviewable-modal")
end
def select_send_rejection_email_checkbox
modal.find(".reject-reason-reviewable-modal__send_email--inline").check
end
def fill_in_rejection_reason(reason)
modal.find(".reject-reason-reviewable-modal__explain-reviewable textarea").fill_in(
with: reason,
)
end
def delete_user
modal.find(".d-modal__footer .btn.btn-danger").click
end
end
end
end