You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
561 B
20 lines
561 B
6 years ago
|
// 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()
|
||
|
}
|
||
|
}
|