当我向application.js添加一些垃圾时,我从Poltergeist中得到以下错误:
Capybara::Poltergeist::JavascriptError: One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
然而,当我抛出异常时,它被忽略(由于缺少页面功能,测试失败)。如果页面有未处理的异常,我可以让Poltergeist失败吗?或者至少发出警告?
答案 0 :(得分:1)
这对我来说听起来像个错误 - 请在Github上报告,并重现步骤。