2018-01-09 16:52:26 +00:00
|
|
|
// For authoring Nightwatch tests, see
|
|
|
|
// http://nightwatchjs.org/guide#usage
|
|
|
|
|
|
|
|
module.exports = {
|
2018-05-18 09:28:29 +00:00
|
|
|
'default e2e tests': (browser) => {
|
2018-01-09 16:52:26 +00:00
|
|
|
browser
|
2018-05-18 09:28:29 +00:00
|
|
|
.url(process.env.VUE_DEV_SERVER_URL)
|
2018-01-09 16:52:26 +00:00
|
|
|
.waitForElementVisible('#app', 5000)
|
|
|
|
.assert.elementPresent('.hello')
|
|
|
|
.assert.containsText('h1', 'Welcome to Your Vue.js App')
|
|
|
|
.assert.elementCount('img', 1)
|
|
|
|
.end();
|
|
|
|
},
|
|
|
|
};
|