From 191c02af1ebfc7e6c53dc88d97c4e3ca23fbea8b Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 26 Oct 2016 16:46:32 +0200 Subject: Basic skeleton --- test/e2e/specs/test.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/e2e/specs/test.js (limited to 'test/e2e/specs/test.js') diff --git a/test/e2e/specs/test.js b/test/e2e/specs/test.js new file mode 100644 index 00000000..a7b1bd92 --- /dev/null +++ b/test/e2e/specs/test.js @@ -0,0 +1,19 @@ +// For authoring Nightwatch tests, see +// http://nightwatchjs.org/guide#usage + +module.exports = { + 'default e2e tests': function (browser) { + // automatically uses dev Server port from /config.index.js + // default: http://localhost:8080 + // see nightwatch.conf.js + const devServer = browser.globals.devServerURL + + browser + .url(devServer) + .waitForElementVisible('#app', 5000) + .assert.elementPresent('.hello') + .assert.containsText('h1', 'Welcome to Your Vue.js App') + .assert.elementCount('img', 1) + .end() + } +} -- cgit v1.2.3-70-g09d2