Skip to content

Commit 1017ea8

Browse files
author
Simon Hofmann
committed
(#17) Reverted minimized window test since minimized windows are not handled equally on all platforms
1 parent e0fccf1 commit 1017ea8

File tree

1 file changed

+0
-19
lines changed
  • test/window-integration-tests

1 file changed

+0
-19
lines changed

test/window-integration-tests/test.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,6 @@ describe("getActiveWindow", () => {
8787
expect(activeWindowRect.width).toBe(newWidth);
8888
expect(activeWindowRect.height).toBe(newHeight);
8989
});
90-
91-
it("should return (0,0,0,0) by default for a minimized window", async () => {
92-
// GIVEN
93-
const xPosition = 0;
94-
const yPosition = 0;
95-
const width = 0;
96-
const height = 0;
97-
await app.browserWindow.minimize();
98-
99-
// WHEN
100-
const activeWindowHandle = libnut.getActiveWindow();
101-
const activeWindowRect = libnut.getWindowRect(activeWindowHandle);
102-
103-
// THEN
104-
expect(activeWindowRect.x).toBe(xPosition);
105-
expect(activeWindowRect.y).toBe(yPosition);
106-
expect(activeWindowRect.width).toBe(width);
107-
expect(activeWindowRect.height).toBe(height);
108-
});
10990
});
11091

11192
afterAll(async () => {

0 commit comments

Comments
 (0)