Skip to content

Commit fb9478a

Browse files
committed
Updated E2E test with timeout to account for application startup
1 parent f0ac52c commit fb9478a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: index.e2e.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assert, centerOf, Key, keyboard, mouse, screen, straightTo } from "./index";
1+
import { assert, centerOf, Key, keyboard, mouse, screen, sleep, straightTo } from "./index";
22

33
const openXfceMenu = async () => {
44
await mouse.move(straightTo(centerOf(screen.find("menu.png"))));
@@ -43,6 +43,7 @@ describe("E2E demo", () => {
4343
await assert.isVisible("desktop.png");
4444
await openXfceMenu();
4545
await run("gnome-calculator");
46+
await sleep(1500);
4647
await assert.isVisible("calculator.png");
4748
await keyboard.type("525");
4849
await calculate();

0 commit comments

Comments
 (0)