Integration tests: offline by default

This commit is contained in:
DC
2016-09-19 19:41:43 -07:00
parent 2200fffa1e
commit 802a898394
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ function waitForLoad (app, t, opts) {
return app.client.waitUntilWindowLoaded()
}).then(function () {
// Offline mode
if (opts.offline) app.webContents.executeJavaScript('testOfflineMode()')
if (!opts.online) app.webContents.executeJavaScript('testOfflineMode()')
}).then(function () {
// Switch to the main window. Index 0 is apparently the hidden webtorrent window...
return app.client.windowByIndex(1)