2024-04-16 04:34:32 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
|
|
module Modals
|
|
|
|
class DiscardDraft < PageObjects::Modals::Base
|
|
|
|
MODAL_SELECTOR = ".discard-draft-modal"
|
|
|
|
|
|
|
|
def open?
|
|
|
|
has_css?(".modal.d-modal#{MODAL_SELECTOR}")
|
|
|
|
end
|
|
|
|
|
|
|
|
def closed?
|
|
|
|
has_no_css?(".modal.d-modal#{MODAL_SELECTOR}")
|
|
|
|
end
|
2024-08-26 11:49:26 -04:00
|
|
|
|
|
|
|
def click_save
|
|
|
|
footer.find("button.save-draft").click
|
|
|
|
end
|
2024-04-16 04:34:32 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|