From 2a1b43fe7eda748a2cf944537b101c9d0e907f8a Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Tue, 4 Jul 2017 00:51:44 -0700 Subject: [PATCH] Added nightwatch conf and guinea pig test --- nightwatch.json | 17 +++++++++++++++++ test/nightwatch/first_time_flow.js | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 nightwatch.json create mode 100644 test/nightwatch/first_time_flow.js 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(); + } +};