@samitouri / QOS-React-2 / commits / 2807202ee7

bump webdriver timeouts

fixes #634 fixes #551

Thomas Aylott committed Dec 4, 2013 at 17:14 UTC 2807202ee728ac9940e18e4dcac1e3ff514438a2
1 file changed +3 -3
grunt/tasks/webdriver-jasmine.js
+3 -3
@@ -73,11 +73,11 @@ module.exports = function(){
73
74 function getJSReport(browser){
75 return browser
76 - .waitForCondition("typeof window.jasmine != 'undefined'", 5e3)
76 + .waitFor(wd.asserters.jsCondition("typeof window.jasmine != 'undefined'"), 5e3, 50)
77 .fail(function(error){
78 throw Error("The test page didn't load properly. " + error);
79 })
80 - .waitForCondition("typeof window.jasmine.getJSReport != 'undefined'", 10e3)
81 - .waitForCondition("window.postDataToURL.running <= 0", 30e3)
80 + .waitFor(wd.asserters.jsCondition("typeof window.jasmine.getJSReport != 'undefined'"), 60e3, 100)
81 + .waitFor(wd.asserters.jsCondition("window.postDataToURL.running <= 0"), 30e3, 500)
82 .eval("jasmine.getJSReport().passed");
83 }