Skip to content

Commit cf18af3

Browse files
committed
(#17) Additional timeouts for focus handling
1 parent 3bd63cc commit cf18af3

File tree

1 file changed

+4
-1
lines changed
  • test/window-integration-tests

1 file changed

+4
-1
lines changed

test/window-integration-tests/test.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ beforeAll(async () => {
1414
waitTimeout: APP_TIMEOUT,
1515
});
1616
await app.start();
17-
await app.browserWindow.focus();
17+
await app.client.waitUntilWindowLoaded();
1818
});
1919

2020
beforeEach(async () => {
2121
if (app && app.isRunning()) {
2222
await app.browserWindow.minimize();
2323
await app.browserWindow.focus();
24+
await app.client.waitUntil(async () => {
25+
return await app.browserWindow.isFocused();
26+
});
2427
}
2528
});
2629

0 commit comments

Comments
 (0)