Skip to content

Commit 2807202

Browse files
bump webdriver timeouts
fixes facebook#634 fixes facebook#551
1 parent 60f2e45 commit 2807202

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

grunt/tasks/webdriver-jasmine.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ module.exports = function(){
7373

7474
function getJSReport(browser){
7575
return browser
76-
.waitForCondition("typeof window.jasmine != 'undefined'", 5e3)
76+
.waitFor(wd.asserters.jsCondition("typeof window.jasmine != 'undefined'"), 5e3, 50)
7777
.fail(function(error){
7878
throw Error("The test page didn't load properly. " + error);
7979
})
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)
8282
.eval("jasmine.getJSReport().passed");
8383
}

0 commit comments

Comments
 (0)