Disable JavaScript errors in tests

This commit is contained in:
Patrick Gansterer 2020-09-05 16:34:12 +02:00
parent 899a83bec4
commit c6250de945

View file

@ -10,6 +10,11 @@ require 'capybara/apparition'
Capybara.server = :puma, { Silent: true }
Capybara.javascript_driver = :apparition
#TODO: Remove temporary fix to ignore JavaScript errors
Capybara.register_driver :apparition do |app|
Capybara::Apparition::Driver.new(app, {js_errors: false})
end
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }