From 9064769185c4f2686ef699036c3263c4b2e0bbdf Mon Sep 17 00:00:00 2001 From: Chris van Marle Date: Tue, 7 Feb 2017 22:29:51 +0100 Subject: [PATCH] Check for dev console --- tests/e2e/dev_console.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/e2e/dev_console.js b/tests/e2e/dev_console.js index de9a7c02..65837844 100644 --- a/tests/e2e/dev_console.js +++ b/tests/e2e/dev_console.js @@ -1,6 +1,7 @@ const Application = require("spectron").Application; const path = require("path"); const chai = require("chai"); +const expect = chai.expect; const chaiAsPromised = require("chai-as-promised"); var electronPath = path.join(__dirname, "../../", "node_modules", ".bin", "electron"); @@ -36,8 +37,7 @@ describe("Argument 'dev'", function () { app.args = [appPath]; return app.start().then(function() { - return app.client.waitUntilWindowLoaded() - .getWindowCount().should.eventually.equal(1); + return expect(app.browserWindow.isDevToolsOpened()).to.eventually.equal(false); }); }); @@ -45,8 +45,7 @@ describe("Argument 'dev'", function () { app.args = [appPath, "dev"]; return app.start().then(function() { - return app.client.waitUntilWindowLoaded() - .getWindowCount().should.eventually.equal(2); + return expect(app.browserWindow.isDevToolsOpened()).to.eventually.equal(true); }); }); });