piskel/tests/integration/casperjs/smoke_test.js

13 lines
438 B
JavaScript
Raw Normal View History

2013-05-26 22:29:40 +00:00
casper
.start(casper.cli.get('baseUrl')+"?debug")
.then(function () {
// 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.');
this.test.assertExists('#drawing-canvas-container canvas', 'Check if drawing canvas element is created');
})
.run(function () {
this.test.done();
});