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
|
def click_primary_button
|
||||||
find(".modal-footer .btn-primary").click
|
find(".modal-footer .btn-primary").click
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def open?
|
||||||
|
has_css?(".modal.d-modal")
|
||||||
|
end
|
||||||
|
|
||||||
|
def closed?
|
||||||
|
has_no_css?(".modal.d-modal")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue