From 4b39bced3ecb8e7e66c4a55b8a2d8b4675759989 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 30 May 2025 15:13:24 +0200 Subject: [PATCH] Increase capybara default timeout to reduce test flakiness (#34859) --- spec/support/capybara.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 4357d51382..e8cb852c7b 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -30,6 +30,10 @@ end Capybara.javascript_driver = :headless_chrome +# Some of the flaky tests seem to be caused by github runners being too slow for the +# default timeout of 2 seconds +Capybara.default_max_wait_time = 8 + RSpec.configure do |config| config.before(:each, type: :system) do driven_by :rack_test