mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Make grunt-casperjs smoketest work 1
This commit is contained in:
parent
0cccd11683
commit
88afff89c9
@ -19,7 +19,7 @@ module.exports = function(grunt) {
|
|||||||
connect: {
|
connect: {
|
||||||
www: {
|
www: {
|
||||||
options: {
|
options: {
|
||||||
base: 'piskel',
|
base: '.',
|
||||||
port: 4545
|
port: 4545
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -33,7 +33,7 @@ module.exports = function(grunt) {
|
|||||||
options: {
|
options: {
|
||||||
args: {
|
args: {
|
||||||
baseUrl: 'http://localhost:' +
|
baseUrl: 'http://localhost:' +
|
||||||
'<%= connect.www.options.port %>/'
|
'<%= connect.www.options.port %>/index.html'
|
||||||
},
|
},
|
||||||
direct: false,
|
direct: false,
|
||||||
logLevel: 'error',
|
logLevel: 'error',
|
||||||
|
@ -1 +1,16 @@
|
|||||||
// pouet
|
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();
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user