From febed2e8a3b92b516799a8d32bf3b2cc7006da39 Mon Sep 17 00:00:00 2001 From: Martin Gruner Date: Wed, 20 Oct 2021 12:08:58 +0200 Subject: [PATCH] Follow-up: bcc0540f4 - Fix local browser testing. --- spec/support/capybara/selenium_driver.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/capybara/selenium_driver.rb b/spec/support/capybara/selenium_driver.rb index c7ea66997..12612609c 100644 --- a/spec/support/capybara/selenium_driver.rb +++ b/spec/support/capybara/selenium_driver.rb @@ -29,7 +29,7 @@ Capybara.register_driver(:zammad_chrome) do |app| Capybara::Selenium::Driver.new(app, **options).tap do |driver| # Selenium 4 installs a default file_detector which finds wrong files/directories such as zammad/test. - driver.browser.file_detector = nil + driver.browser.file_detector = nil if ENV['REMOTE_URL'].present? end end @@ -53,6 +53,6 @@ Capybara.register_driver(:zammad_firefox) do |app| Capybara::Selenium::Driver.new(app, **options).tap do |driver| # Selenium 4 installs a default file_detector which finds wrong files/directories such as zammad/test. - driver.browser.file_detector = nil + driver.browser.file_detector = nil if ENV['REMOTE_URL'].present? end end