mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
18 lines
615 B
JavaScript
18 lines
615 B
JavaScript
/* jshint evil: true */
|
|
|
|
'use strict';
|
|
|
|
module.exports = function(){
|
|
return require('./webdriver-all').call(this, function(config, wd, browser){
|
|
return browser
|
|
.waitFor(wd.asserters.jsCondition("typeof window.jasmine != 'undefined'"), 5e3, 50)
|
|
.fail(function(error){
|
|
throw Error("The test page didn't load properly. " + error);
|
|
})
|
|
.waitFor(wd.asserters.jsCondition("typeof window.jasmine.getJSReport != 'undefined'"), 60e3, 100)
|
|
.waitFor(wd.asserters.jsCondition("window.postDataToURL.running <= 0"), 30e3, 500)
|
|
.eval("jasmine.getJSReport().passed")
|
|
;
|
|
});
|
|
};
|