修改过页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
561 B

1 year ago
  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. }