当我将一些垃圾添加到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).然而,当我只是抛出和exception时,它被忽略了(并且测试失败,因为页面功能缺失)。如果页面有未处理的异常,我可以让Poltergeist失败吗?或者至少发出警告?
发布于 2013-03-14 02:08:08
这听起来像是一个bug -请在Github上报告它,并提供重现的步骤。
https://stackoverflow.com/questions/15386795
复制相似问题