Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Commit 03852e7

Browse files
committed
Merge pull request #57 from mobify/release-1.6.2
Release 1.6.2
2 parents bb7bf82 + 5692c8c commit 03852e7

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
1.6.2
2+
- Update `preview` command to accept `site.js` files under `/system/site.js`
13
1.6.1
24
- Update seleniumVersion to 2.52.0
35
- Update chromeDriver version to 2.21

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ this.demoTest = function (browser) {
176176

177177
#### preview(url, callback)
178178

179-
The `preview` command uses http://preview.mobify.com to open a website to preview a given bundle. The bundle and the base URL need to be set in the `tests/system/site.json` or `tests/system/site.js` file. Note that if the "production" flag is set in the `activeProfile` in `site.json` or `site.js`, the bundle URL will be ignored. Pass in an optional URL as an argument to this command. Upon completion, `waitUntilMobified` is called to ensure that the mobile site adaptation is complete.
179+
The `preview` command uses http://preview.mobify.com to open a website to preview a given bundle. The bundle and the base URL need to be set in the `tests/system/site.json`, `tests/system/site.js` or `system/site.js` file. Note that if the "production" flag is set in the `activeProfile` in `site.json` or `site.js`, the bundle URL will be ignored. Pass in an optional URL as an argument to this command. Upon completion, `waitUntilMobified` is called to ensure that the mobile site adaptation is complete.
180180

181181
Example site.json
182182
```

commands/preview.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,15 @@ try {
4040
var siteConfig = require(path.join(path.resolve('./'), '/tests/system/site.js'));
4141
} catch (e) {
4242
if (e instanceof Error && e.code === 'MODULE_NOT_FOUND') {
43-
console.log('Not using optional site.js.');
43+
console.log('Not using optional /tests/system/site.js.');
44+
}
45+
}
46+
47+
try {
48+
var siteConfig = require(path.join(path.resolve('./'), '/system/site.js'));
49+
} catch (e) {
50+
if (e instanceof Error && e.code === 'MODULE_NOT_FOUND') {
51+
console.log('Not using optional /system/site.js.');
4452
}
4553
}
4654

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nightwatch-commands",
3-
"version": "1.6.1",
3+
"version": "1.6.2",
44
"description": "A set of Mobify specific custom commands for Nightwatch.js",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)