Follow-up: bcc0540f4
- Fix local browser testing.
This commit is contained in:
parent
af9bcf96e4
commit
febed2e8a3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue