Maintenance: Disable WebMock in Capybara to solve Net::OpenTimeout issues.

(cherry picked from commit 69067529f7e8f98b22091bf5942bf305108fa3f5)
This commit is contained in:
Martin Gruner 2022-04-01 10:53:08 +02:00
parent 68d7592610
commit 346ef5b3b2

View file

@ -50,4 +50,12 @@ RSpec.configure do |config|
end end
end end
config.around(:each, type: :system) do |example|
# WebMock makes it impossible to have persistent http connections to Selenium,
# which may cause overhead and Net::OpenTimeout errors.
WebMock.disable!
example.run
WebMock.enable!
end
end end