test.js 561B

1234567891011121314151617181920
  1. // For authoring Nightwatch tests, see
  2. // http://nightwatchjs.org/guide#usage
  3. module.exports = {
  4. 'default e2e tests': function (browser) {
  5. // automatically uses dev Server port from /config.index.js
  6. // default: http://localhost:8080
  7. // see nightwatch.conf.js
  8. const devServer = browser.globals.devServerURL
  9. browser
  10. .url(devServer)
  11. .waitForElementVisible('#app', 5000)
  12. .assert.elementPresent('.hello')
  13. .assert.containsText('h1', 'Welcome to Your Vue.js App')
  14. .assert.elementCount('img', 1)
  15. .end()
  16. }
  17. }