We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd24ae3 commit cfee97cCopy full SHA for cfee97c
ava-e2e.config.js
@@ -2,5 +2,5 @@ module.exports = {
2
files: ['test/*'],
3
extensions: ['ts'],
4
require: ['ts-node/register/transpile-only'],
5
- timeout: '30s'
+ timeout: '2m'
6
};
test/index.ts
@@ -51,5 +51,11 @@ test.after(async () => {
51
});
52
53
test('see if dev tools are open', async (t) => {
54
- t.false(await app.evaluate(({webContents}) => !!webContents.getFocusedWebContents()?.isDevToolsOpened()));
+ const result = app.evaluate(({webContents}) => {
55
+ const focused = webContents.getFocusedWebContents();
56
+ const isDevOpen = focused?.isDevToolsOpened();
57
+ return Boolean(isDevOpen);
58
+ });
59
+
60
+ t.false(await result);
61
0 commit comments