Skip to content

Commit

Permalink
Fix Smoketest to pick up correct package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nkbt committed May 17, 2016
1 parent 82da398 commit 0c926c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test-e2e/Smoketest.js
@@ -1,12 +1,15 @@
'use strict';

const path = require('path');
const packageJson = require(path.join(process.cwd(), 'package.json'));


module.exports = {
'Smoketest'(browser) {
browser
.url(`${browser.launchUrl}/`)
.waitForElementVisible('body', 1000)
.assert.containsText('body', require('../package.json').name)
.assert.containsText('body', packageJson.name)
.end();
}
};

0 comments on commit 0c926c4

Please sign in to comment.