Add retry handling for flaky spec timeouts

This commit is contained in:
Matt-Yorkley
2021-02-06 10:52:59 +00:00
parent 173cf9e536
commit dcc3d933bc

View File

@@ -101,6 +101,10 @@ RSpec.configure do |config|
# Retry
config.verbose_retry = true
# Try twice (retry once)
config.default_retry_count = 2
# Only retry when Selenium raises Net::ReadTimeout
config.exceptions_to_retry = [Net::ReadTimeout]
# Force use of expect (over should)
config.expect_with :rspec do |expectations|