mirror of
https://github.com/discourse/discourse.git
synced 2025-01-21 13:29:47 +08:00
44c84413fb
* DEV: add system test for rejecting user from review page * DEV: upgrade reject-reason-reviewable modal to glimmer & DModal
26 lines
628 B
Ruby
26 lines
628 B
Ruby
# 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(".modal-footer .btn.btn-danger").click
|
|
end
|
|
end
|
|
end
|
|
end
|