Skip to content

Commit 533bbd1

Browse files
committed
Fixing e2e demo
1 parent 427fdcf commit 533bbd1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

e2e/assets/equals.png

499 Bytes
Loading

index.e2e.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,19 @@ const calculate = async () => {
3333
await mouse.move(straightTo(centerOf(screen.find("zero.png"))));
3434
await mouse.leftClick();
3535
await mouse.leftClick();
36+
await mouse.move(straightTo(centerOf(screen.find("equals.png"))));
37+
await mouse.leftClick();
3638
};
3739

3840
const close = async () => {
3941
await mouse.move(straightTo(centerOf(screen.find("close.png"))));
4042
await mouse.leftClick();
4143
};
4244

45+
afterEach(async () => {
46+
await keyboard.type(Key.LeftControl, Key.LeftAlt, Key.D);
47+
});
48+
4349
describe("E2E screen test", () => {
4450
it("should throw on invalid images", async () => {
4551
jest.setTimeout(30000);
@@ -59,7 +65,6 @@ describe("E2E demo", () => {
5965
await assert.isVisible("calculator.png");
6066
await keyboard.type("525");
6167
await calculate();
62-
await keyboard.type(Key.Enter);
6368
await assert.isVisible("result.png");
6469
await close();
6570
});

0 commit comments

Comments
 (0)