问题描述
运行规格时,我遇到此错误。当我调试规范时,我知道当时无论在哪里使用click_button "login"
,rspec都会将此错误记录到日志中。
测试用例已通过,但在travis CI上以及在本地上,都会引发此错误:TypeError: undefined is not a function (evaluating 'navigator.sendbeacon')
rspec-core: 3.8.2
phantomjs - 2.1.1.0
testing using Capybara-3.28.0
错误:
Run options:
include {:locations=>{"./spec/features/manager/manager_views_respose_rate_spec.rb"=>[63]}}
exclude {:I_AM_broKEN=>true,:slow=>true}
Capybara starting Puma...
* Version 4.1.0,codename: Fourth and One
* Min threads: 0,max threads: 4
* Listening on tcp://127.0.0.1:41039
TypeError: undefined is not a function (evaluating 'navigator.sendbeacon')
TypeError: undefined is not a function (evaluating 'navigator.sendbeacon')
TypeError: undefined is not a function (evaluating 'navigator.sendbeacon')
.
我不知道为什么会引发此错误以及如何解决该错误,我也在网上进行了研究,但没有任何解决方案。 我可以挽救travis CI上的这个特定错误吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)