A platform for community discussion. Free, open, simple.
DEV: Double default capybara wait time for certain flaky tests take 2 (#32058)
Alan Guo Xiang Tan59edec46a3de
diff --git a/spec/system/email_change_spec.rb b/spec/system/email_change_spec.rbindex e5e7c212c0f..71b8ed809f7 100644--- a/spec/system/email_change_spec.rb+++ b/spec/system/email_change_spec.rb@@ -53,7 +53,7 @@ describe "Changing email", type: :system doit "works when user has totp 2fa", dump_threads_on_failure: true do# Tests is flaky so trying with a longer wait time as a workaround- using_wait_time(Capybara.default_max_wait_time * 2) do+ Capybara.using_wait_time(Capybara.default_max_wait_time * 2) doSiteSetting.hide_email_address_taken = falsesecond_factor = Fabricate(:user_second_factor_totp, user: user)diff --git a/spec/system/forgot_password_spec.rb b/spec/system/forgot_password_spec.rbindex d887a0dcfef..e0d29e7344a 100644--- a/spec/system/forgot_password_spec.rb+++ b/spec/system/forgot_password_spec.rb@@ -209,7 +209,8 @@ shared_examples "forgot password scenarios" doenddescribe "User resetting password", type: :system, dump_threads_on_failure: true do- around { |example| using_wait_time(Capybara.default_max_wait_time * 2) { example.run } }+ # Tests are flaky so trying with a longer wait time as a workaround+ around { |example| Capybara.using_wait_time(Capybara.default_max_wait_time * 2) { example.run } }describe "when desktop" doinclude_examples "forgot password scenarios"