Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit a26eb9e

Browse files
artemvOzymandiasTheGreat
authored andcommitted
fix(e2e): without devTools
according to electron-userland/spectron#174 (comment) this might help re error like in https://travis-ci.org/artemv/angular-electron-spectron/builds/500315009 ..but this also could be node version dependent as I don't have it locally on MacOS & Node 9
1 parent 8884e5b commit a26eb9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

e2e/main.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('angular-electron App', function () {
2222

2323
it('creates initial windows', async function () {
2424
const count = await client.getWindowCount();
25-
expect(count).to.equal(2);
25+
expect(count).to.equal(1);
2626
});
2727

2828
});

main.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ function createWindow() {
3535
}));
3636
}
3737

38-
win.webContents.openDevTools();
38+
if (serve) {
39+
win.webContents.openDevTools();
40+
}
3941

4042
// Emitted when the window is closed.
4143
win.on('closed', () => {

0 commit comments

Comments
 (0)