Skip to content

Commit 2ec2fbe

Browse files
committedAug 6, 2020
(#17) Moved focus workaround from beforeEach to beforeAll
1 parent 1394e9d commit 2ec2fbe

File tree

1 file changed

+3
-11
lines changed
  • test/window-integration-tests

1 file changed

+3
-11
lines changed
 

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

+3-11
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,9 @@ beforeAll(async () => {
1515
});
1616
await app.start();
1717
await app.client.waitUntilWindowLoaded();
18-
});
19-
20-
beforeEach(async () => {
21-
if (app && app.isRunning()) {
22-
await app.browserWindow.minimize();
23-
await app.browserWindow.restore();
24-
await app.browserWindow.focus();
25-
await app.client.waitUntil(async () => {
26-
return await app.browserWindow.isFocused();
27-
});
28-
}
18+
await app.browserWindow.minimize();
19+
await app.browserWindow.restore();
20+
await app.browserWindow.focus();
2921
});
3022

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

0 commit comments

Comments
 (0)
Please sign in to comment.