diff --git a/ava-e2e.config.js b/ava-e2e.config.js index 0b2f46db..5cf269b8 100644 --- a/ava-e2e.config.js +++ b/ava-e2e.config.js @@ -2,5 +2,5 @@ module.exports = { files: ['test/*'], extensions: ['ts'], require: ['ts-node/register/transpile-only'], - timeout: '30s' + timeout: '2m' }; diff --git a/test/index.ts b/test/index.ts index 522069b8..2bfab8f0 100644 --- a/test/index.ts +++ b/test/index.ts @@ -51,5 +51,11 @@ test.after(async () => { }); test('see if dev tools are open', async (t) => { - t.false(await app.evaluate(({webContents}) => !!webContents.getFocusedWebContents()?.isDevToolsOpened())); + const result = app.evaluate(({webContents}) => { + const focused = webContents.getFocusedWebContents(); + const isDevOpen = focused?.isDevToolsOpened(); + return Boolean(isDevOpen); + }); + + t.false(await result); });