mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
15 lines
593 B
JavaScript
15 lines
593 B
JavaScript
'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');
|
|
});
|
|
};
|