We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 785e5b9 commit 4cd61f6Copy full SHA for 4cd61f6
test/window-integration-tests/test.js
@@ -14,8 +14,12 @@ beforeAll(async () => {
14
waitTimeout: APP_TIMEOUT,
15
});
16
await app.start();
17
- await app.browserWindow.setAlwaysOnTop(true);
18
- await app.browserWindow.focus();
+ await app.client.waitUntilWindowLoaded();
+ await app.client.waitUntil(async () => {
19
+ await app.browserWindow.setAlwaysOnTop(true);
20
+ await app.browserWindow.focus();
21
+ return await app.browserWindow.isFocused();
22
+ });
23
24
25
describe("getWindows", () => {
0 commit comments