From 16136565a7713a141d538c4a0e857bf02a9f4470 Mon Sep 17 00:00:00 2001 From: Brian Shand Date: Fri, 5 Jan 2024 14:14:50 +0000 Subject: [PATCH] Tests should support latest chrome driver releases. --- test/test_helper.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 2e21e52e..07aa07c2 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -118,10 +118,7 @@ def bootstrap_download_helper default_directory: DownloadHelpers.directory.to_s) browser_options.add_preference(:browser, set_download_behavior: { behavior: 'allow' }) - Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options).tap do |driver| - # Chrome < 77 - driver.browser.download_path = DownloadHelpers.directory - end + Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options) end end