diff options
-rw-r--r-- | features/support/capybara.rb | 2 | ||||
-rw-r--r-- | spec/support/capybara.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/features/support/capybara.rb b/features/support/capybara.rb index 8c6f4233278..aaec9a6ece7 100644 --- a/features/support/capybara.rb +++ b/features/support/capybara.rb @@ -6,7 +6,7 @@ timeout = (ENV['CI'] || ENV['CI_SERVER']) ? 90 : 10 Capybara.javascript_driver = :poltergeist Capybara.register_driver :poltergeist do |app| - Capybara::Poltergeist::Driver.new(app, js_errors: false, timeout: timeout) + Capybara::Poltergeist::Driver.new(app, js_errors: true, timeout: timeout) end Spinach.hooks.on_tag("javascript") do diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 8a7b8f8b90a..ead99abddc8 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -7,7 +7,7 @@ timeout = (ENV['CI'] || ENV['CI_SERVER']) ? 90 : 10 Capybara.javascript_driver = :poltergeist Capybara.register_driver :poltergeist do |app| - Capybara::Poltergeist::Driver.new(app, js_errors: false, timeout: timeout) + Capybara::Poltergeist::Driver.new(app, js_errors: true, timeout: timeout) end Capybara.default_wait_time = timeout |