DEV: Add some modal PageObject open/closed assertions (#22425)

This commit is contained in:
Martin Brennan 2023-07-05 11:02:46 +10:00 committed by GitHub
parent 631089a4b0
commit cd0dac5cd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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