Skip to content

Commit 192467a

Browse files
committed
Remove mouse button e2e test
1 parent 533bbd1 commit 192467a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

index.e2e.spec.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
assert,
3-
Button,
43
centerOf,
54
down,
65
Key,
@@ -42,10 +41,6 @@ const close = async () => {
4241
await mouse.leftClick();
4342
};
4443

45-
afterEach(async () => {
46-
await keyboard.type(Key.LeftControl, Key.LeftAlt, Key.D);
47-
});
48-
4944
describe("E2E screen test", () => {
5045
it("should throw on invalid images", async () => {
5146
jest.setTimeout(30000);
@@ -90,15 +85,3 @@ describe("E2E drag & drop demo", () => {
9085
expect(Math.abs(dest.height - expected.height)).toBeLessThanOrEqual(maxDiff);
9186
});
9287
});
93-
94-
describe("E2E mouse button demo", () => {
95-
it("should click all mouse buttons without throwing", async () => {
96-
jest.setTimeout(60000);
97-
screen.config.resourceDirectory = "./e2e/assets";
98-
for (const btn of [Button.RIGHT, Button.MIDDLE, Button.LEFT]) {
99-
await mouse.pressButton(btn);
100-
await sleep(10);
101-
await mouse.releaseButton(btn);
102-
}
103-
});
104-
});

0 commit comments

Comments
 (0)