mirror of
https://github.com/agersant/polaris
synced 2024-11-10 10:14:12 +00:00
Added nightwatch conf and guinea pig test
This commit is contained in:
parent
90e9b62fe4
commit
2a1b43fe7e
2 changed files with 26 additions and 0 deletions
17
nightwatch.json
Normal file
17
nightwatch.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"src_folders" : ["test/nightwatch"],
|
||||
|
||||
"test_settings" : {
|
||||
"default" : {
|
||||
"silent": true,
|
||||
"screenshots" : {
|
||||
"enabled" : false,
|
||||
"path" : ""
|
||||
},
|
||||
"desiredCapabilities": {
|
||||
"browserName": "phantomjs",
|
||||
"javascriptEnabled" : true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
9
test/nightwatch/first_time_flow.js
Normal file
9
test/nightwatch/first_time_flow.js
Normal 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();
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue