responsive_image_grid/tests/e2e/specs/test.js

22 lines
504 B
JavaScript
Raw Normal View History

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