You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 5, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+53-3Lines changed: 53 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,9 +166,59 @@ this.demoTest = function (browser) {
166
166
167
167
#### preview(url, callback)
168
168
169
-
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` file. Note that if the "production" flag is set in `site.json`, 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.
169
+
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.
170
+
171
+
Example site.json
172
+
```
173
+
{
174
+
"activeProfile": "production",
175
+
"profiles": {
176
+
"default": {
177
+
"bundleUrl": "http://localhost:8080/adaptive.js",
178
+
"siteUrl": "http://www.merlinspotions.com/"
179
+
},
180
+
"production": {
181
+
"bundleUrl": "",
182
+
"siteUrl": "http://www.merlinspotions.com/",
183
+
"production": true
184
+
}
185
+
}
186
+
}
187
+
```
188
+
189
+
Example site.js
190
+
```
191
+
var Site = {
192
+
/*
193
+
activeProfile defines which environment to run tests against.
194
+
By default, builds on master branch run against production, without preview.
195
+
Builds on any other branch should use preview with local adaptive.js.
196
+
197
+
Change activeProfile whenever you need to override the default behaviour.
0 commit comments