whoops dont end too early

This commit is contained in:
Peter Cottle 2015-03-22 17:13:05 -07:00
parent 65480b4ed1
commit fba7e4bb3d

View file

@ -33,12 +33,14 @@ casper.start(
this.test.assertExists(selector);
}.bind(this));
this.test.done();
})
.waitFor(CasperHelp.waits.allCommandsFinished, function then() {
doneSelectors.forEach(function(selector) {
this.test.assertExists(selector);
}.bind(this));
})
.then(function() {
this.test.done();
});
});