From bcd805134da3d98f6b1f6cabcb3cc7bb1e5ddc9a Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Thu, 18 Feb 2021 17:08:40 +0100 Subject: [PATCH] Maintenance: Make CI browser tests more stable by being more generous when facing/retrying exceptions. --- test/browser_test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 670ba476b..bb80f4006 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -723,7 +723,7 @@ class TestCase < ActiveSupport::TestCase end true - rescue Selenium::WebDriver::Error::StaleElementReferenceError + rescue sleep retries retries += 1 retry if retries < 3