liuxiaolong
2019-05-06 acc45d2ece02563964d7b8a22ff0c40bd8358889
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// For authoring Nightwatch tests, see
// http://nightwatchjs.org/guide#usage
 
module.exports = {
  'default e2e tests': function (browser) {
    // automatically uses dev Server port from /config.index.js
    // default: http://localhost:8080
    // see nightwatch.conf.js
    const devServer = browser.globals.devServerURL
 
    browser
      .url(devServer)
      .waitForElementVisible('#app', 5000)
      .assert.elementPresent('h4')
      .assert.containsText('h4', 'Home')
      .assert.elementCount('button.btn', 1)
      .end()
  }
}