Added nightwatch conf and guinea pig test

This commit is contained in:
Antoine Gersant 2017-07-04 00:51:44 -07:00
parent 90e9b62fe4
commit 2a1b43fe7e
2 changed files with 26 additions and 0 deletions

17
nightwatch.json Normal file
View file

@ -0,0 +1,17 @@
{
"src_folders" : ["test/nightwatch"],
"test_settings" : {
"default" : {
"silent": true,
"screenshots" : {
"enabled" : false,
"path" : ""
},
"desiredCapabilities": {
"browserName": "phantomjs",
"javascriptEnabled" : true
}
}
}
}

View file

@ -0,0 +1,9 @@
module.exports = {
'Welcome page loads' : function (browser) {
browser
.url('http://localhost:5050')
.waitForElementVisible('body', 1000)
.assert.containsText('body', 'Welcome to Polaris')
.end();
}
};