Follow-up: bcc0540f4 - Fix local browser testing.

This commit is contained in:
Martin Gruner 2021-10-20 12:08:58 +02:00
parent af9bcf96e4
commit febed2e8a3

View file

@ -29,7 +29,7 @@ Capybara.register_driver(:zammad_chrome) do |app|
Capybara::Selenium::Driver.new(app, **options).tap do |driver| 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. # 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
end end
@ -53,6 +53,6 @@ Capybara.register_driver(:zammad_firefox) do |app|
Capybara::Selenium::Driver.new(app, **options).tap do |driver| 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. # 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
end end