mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 13:52:10 +08:00

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.