DEV: Re-enable browser read timeout in specs (#24844)

Turns out there's an easier (and properly working) way to do this!

See: 52eaecea6d/lib/capybara/selenium/driver.rb (L68C42-L68C42)
This commit is contained in:
Jarek Radosz 2023-12-12 12:29:23 +01:00 committed by GitHub
parent fca67117ee
commit 86b9e784dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ RSpec.configure do |config|
options.add_preference("download.default_directory", Downloads::FOLDER)
end
driver_options = { browser: :chrome }
driver_options = { browser: :chrome, timeout: BROWSER_READ_TIMEOUT }
if ENV["CAPYBARA_REMOTE_DRIVER_URL"].present?
driver_options[:browser] = :remote