schlechtenburg/tests/e2e/specs/test.js

22 lines
521 B
JavaScript
Raw Normal View History

2020-05-19 11:45:14 +00:00
// For authoring Nightwatch tests, see
// https://nightwatchjs.org/guide
module.exports = {
'default e2e tests': (browser) => {
browser
.init()
.waitForElementVisible('#app')
.assert.elementPresent('.hello')
.assert.containsText('h1', 'Welcome to Your Vue.js + TypeScript App')
.assert.elementCount('img', 1)
.end();
},
'example e2e test using a custom command': (browser) => {
browser
.openHomepage()
.assert.elementPresent('.hello')
.end();
},
};