Disable JavaScript errors in tests
This commit is contained in:
parent
899a83bec4
commit
c6250de945
1 changed files with 5 additions and 0 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue