piskel/tests/integration/casperjs/smoke_test.js
2013-05-27 00:59:24 +02:00

12 lines
No EOL
450 B
JavaScript

casper
.start(casper.cli.get('baseUrl'))
.then(function () {
this.wait(5000, function() {
this.test.assertExists('#drawing-canvas-container canvas', 'Check if drawing canvas element is created');
this.test.assertExists('#preview-list .preview-tile', 'Check if first frame is created');
this.test.assertExists('#preview-canvas-container canvas', 'Check if animation preview canvas is created');
});
})
.run(function () {
this.test.done();
});