Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouzekri committed Jul 30, 2017
1 parent 72eb067 commit 99b4209
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div id="gmalt-app">
<header>
<div class="inner">
<img src="../static/logo.svg" />
Expand Down
11 changes: 6 additions & 5 deletions test/e2e/specs/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
// http://nightwatchjs.org/guide#usage

module.exports = {
'default e2e tests': function (browser) {
'app loads correctly': 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('.hello')
.assert.containsText('h1', 'Welcome to Your Vue.js App')
.assert.elementCount('img', 1)
.waitForElementVisible('#gmalt-app', 5000)
.assert.elementPresent('header')
.assert.containsText('h1', 'Gmalt')
.assert.containsText('h2', 'Get My ALTitude')
.assert.elementPresent('main')
.end()
}
}

0 comments on commit 99b4209

Please sign in to comment.