Raise JavaScript errors within system specs

Re-raising console errors helps us to find subtle bugs.
This commit is contained in:
Maikel Linke
2021-10-08 17:45:40 +11:00
parent 7ab4c40a0a
commit 02a19361fb

View File

@@ -13,7 +13,8 @@ Capybara.register_driver(:cuprite) do |app|
# Don't load scripts from external sources, like google maps or stripe
url_whitelist: ["http://localhost", "http://0.0.0.0", "http://127.0.0.1"],
inspector: true,
headless: true
headless: true,
js_errors: true,
}
)
end