DEV: Add confirm_danger to Dialog page object (#26846)

Some dialogs are dangerous...we need to accommodate that too.
This commit is contained in:
Martin Brennan 2024-05-03 09:31:16 +10:00 committed by GitHub
parent 792e66966c
commit 17c428aebf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ module PageObjects
find(".dialog-footer .btn-primary").click
end
def click_danger
find(".dialog-footer .btn-danger").click
end
alias click_ok click_yes
def click_no