Browse Source

Maintenance: Improve rspec-retry configuration to work better with newer Selenium.

Martin Gruner 2 years ago
parent
commit
6a9526a833
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec/support/capybara/driven_by.rb

+ 1 - 1
spec/support/capybara/driven_by.rb

@@ -76,7 +76,7 @@ RSpec.configure do |config|
     #    which may cause overhead and Net::OpenTimeout errors.
     WebMock.disable! if !use_vcr
     # rspec-retry
-    example.run_with_retry retry: 3, exceptions_to_retry: [Net::OpenTimeout, Net::ReadTimeout]
+    example.run_with_retry retry: 3, exceptions_to_retry: [Net::OpenTimeout, Net::ReadTimeout, Selenium::WebDriver::Error::TimeoutError]
     WebMock.enable! if !use_vcr
   end
 end