Skip to content

Commit 4cd61f6

Browse files
committed
(#17) Trying to work around the batch windows problem
1 parent 785e5b9 commit 4cd61f6

File tree

1 file changed

+6
-2
lines changed
  • test/window-integration-tests

1 file changed

+6
-2
lines changed

test/window-integration-tests/test.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ beforeAll(async () => {
1414
waitTimeout: APP_TIMEOUT,
1515
});
1616
await app.start();
17-
await app.browserWindow.setAlwaysOnTop(true);
18-
await app.browserWindow.focus();
17+
await app.client.waitUntilWindowLoaded();
18+
await app.client.waitUntil(async () => {
19+
await app.browserWindow.setAlwaysOnTop(true);
20+
await app.browserWindow.focus();
21+
return await app.browserWindow.isFocused();
22+
});
1923
});
2024

2125
describe("getWindows", () => {

0 commit comments

Comments
 (0)