Skip to content

Commit 01bbe79

Browse files
committed
(#17) Focus still does not work with batch windows
1 parent 430d6cb commit 01bbe79

File tree

1 file changed

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

1 file changed

+6
-5
lines changed

Diff for: test/window-integration-tests/test.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ beforeAll(async () => {
1414
waitTimeout: APP_TIMEOUT,
1515
});
1616
await app.start();
17-
await app.client.waitUntilWindowLoaded();
18-
await app.client.waitUntil(async () => {
19-
await app.browserWindow.setAlwaysOnTop(true);
17+
await app.focus();
18+
});
19+
20+
beforeEach(async () => {
21+
if (app && app.isRunning()) {
2022
await app.browserWindow.focus();
21-
return await app.browserWindow.isFocused();
22-
});
23+
}
2324
});
2425

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

0 commit comments

Comments
 (0)