mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 14:54:31 +08:00
DEV: Add some modal PageObject open/closed assertions (#22425)
This commit is contained in:
parent
631089a4b0
commit
cd0dac5cd2
@ -21,6 +21,14 @@ module PageObjects
|
||||
def click_primary_button
|
||||
find(".modal-footer .btn-primary").click
|
||||
end
|
||||
|
||||
def open?
|
||||
has_css?(".modal.d-modal")
|
||||
end
|
||||
|
||||
def closed?
|
||||
has_no_css?(".modal.d-modal")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user