diff --git a/nightwatch.json b/nightwatch.json new file mode 100644 index 0000000..c0788ee --- /dev/null +++ b/nightwatch.json @@ -0,0 +1,17 @@ +{ + "src_folders" : ["test/nightwatch"], + + "test_settings" : { + "default" : { + "silent": true, + "screenshots" : { + "enabled" : false, + "path" : "" + }, + "desiredCapabilities": { + "browserName": "phantomjs", + "javascriptEnabled" : true + } + } + } +} diff --git a/test/nightwatch/first_time_flow.js b/test/nightwatch/first_time_flow.js new file mode 100644 index 0000000..39b37f6 --- /dev/null +++ b/test/nightwatch/first_time_flow.js @@ -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(); + } +};