mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 09:53:45 +08:00
17 lines
343 B
Ruby
17 lines
343 B
Ruby
|
# 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
|
||
|
end
|
||
|
end
|
||
|
end
|