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