5
水豚,WebKit的時候定期掛起。 uservoice snippetRspec的使用與我正在使用UserVoice的應用程序頁面加載與異步外部腳本=真
var uv = document.createElement('script');
uv.type = 'text/javascript';
uv.async = true;
uv.src = ...; // external call to uservoice to fetch js
var s = document.getElementsByTagName('script')[0];
...
此JavaScript在所有頁面上加載。運行rake spec
時,運行會週期性掛起。當我刪除uservoice片段時,所有測試都能順利運行。我試過設置Capybara.javascript_driver = :webkit_debug
,我看不到uservoice的迴應。當我設置page.driver.browser.timeout
時,我可以看到來自uservoice的0響應,並且規格將會因超時錯誤而失敗。
其他人遇到這個問題?
我有類似的東西,但被使用Ruby /豚/ RSpec的最現代的版本解決。 – adarsh 2013-05-22 17:16:11