diff --git a/spec/system/page_objects/components/dialog.rb b/spec/system/page_objects/components/dialog.rb index bc11ddf886e..f22e9f1cecd 100644 --- a/spec/system/page_objects/components/dialog.rb +++ b/spec/system/page_objects/components/dialog.rb @@ -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