bitbadger.solutions-theme/test/e2e/specs/test.js
Daniel J. Summers 7462c816f5 Initial import
v1 of Vue.js-based site
2017-07-26 22:09:53 -05:00

20 lines
561 B
JavaScript

// 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()
}
}