|
= |
|
| // http://nightwatchjs.org/guide#usage |
<> |
// https://nightwatchjs.org/guide |
| |
= |
|
| module.exports = { |
|
module.exports = { |
| 'default e2e tests': function (browser) { |
<> |
'default e2e tests': browser => { |
| browser |
= |
browser |
| .url(process.env.VUE_DEV_SERVER_URL) |
<> |
.init() |
| .waitForElementVisible('#app', 5000) |
= |
.waitForElementVisible('#app', 5000) |
| .assert.elementPresent('h4') |
|
.assert.elementPresent('h4') |
| .assert.containsText('h4', 'Home') |
|
.assert.containsText('h4', 'Home') |
| .assert.elementCount('button.btn', 1) |
|
.assert.elementCount('button.btn', 1) |
| .end() |
|
.end() |
| |
-+ |
}, |
| |
|
|
| |
|
'example e2e test using a custom command': browser => { |
| |
|
browser |
| |
|
.openHomepage() |
| |
|
.assert.elementPresent('h4') |
| |
|
.end() |
| } |
= |
} |
| } |
|
} |