piskel/test/integration/casperjs/smoke_test.js

15 lines
547 B
JavaScript
Raw Normal View History

2013-05-27 02:29:40 +04:00
casper
2013-08-04 23:47:17 +04:00
.start(casper.cli.get('baseUrl')+"?debug")
.then(function () {
this.wait(casper.cli.get('delay'));
2013-08-04 23:47:17 +04:00
})
.then(function () {
this.echo(casper.cli.get('baseUrl')+"?debug");
// If there was a JS error after the page load, casper won't perform asserts
this.test.assertExists('html', 'Casper JS cannot assert DOM elements. A JS error has probably occured.');
2014-07-23 21:42:08 +04:00
this.test.assertExists('#drawing-canvas-container canvas', 'Check if drawing canvas element is created');
})
.run(function () {
this.test.done();
});