diff --git a/Gruntfile.js b/Gruntfile.js index ceba1794..febea45c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -19,7 +19,7 @@ module.exports = function(grunt) { connect: { www: { options: { - base: 'piskel', + base: '.', port: 4545 } } @@ -33,7 +33,7 @@ module.exports = function(grunt) { options: { args: { baseUrl: 'http://localhost:' + - '<%= connect.www.options.port %>/' + '<%= connect.www.options.port %>/index.html' }, direct: false, logLevel: 'error', diff --git a/tests/integration/casperjs/smoke_test.js b/tests/integration/casperjs/smoke_test.js index aab0e892..daa2a27c 100644 --- a/tests/integration/casperjs/smoke_test.js +++ b/tests/integration/casperjs/smoke_test.js @@ -1 +1,16 @@ -// pouet \ No newline at end of file +casper +.start(casper.cli.get('baseUrl')) +.then(function () { + /*this.test.assertTitle('Gougel', 'Make sure the title is set'); + this.test.assertExists('.balance', 'Check if the balance is set'); + this.fill('form', { + q: 'foo' + }, true);*/ + this.test.assertExists('#drawing-canvas-container', 'Check if the balance is set'); +}) +.then(function () { + //this.test.assertUrlMatch(/www.google.com/, 'Forward the query to Google'); +}) +.run(function () { + this.test.done(); +}); \ No newline at end of file