DEV: Attempt to fix flaky test by using `click_button` instead of `click` (#25070)
Why this change? Some of the tests in `spec/system/table_builder_spec.rb` are flaky when we are asserting that clicking the cancel button will close the modal. This change attempts to fix it by using the `click_button` method instead of `find` then `click` which is more reliable.
This commit is contained in:
parent
0756486b65
commit
2b3a572987
|
@ -11,7 +11,7 @@ module PageObjects
|
|||
end
|
||||
|
||||
def cancel
|
||||
find("#{MODAL_SELECTOR} .d-modal-cancel").click
|
||||
click_button(I18n.t("js.cancel"))
|
||||
end
|
||||
|
||||
def click_edit_reason
|
||||
|
|
Loading…
Reference in New Issue