Skip to content

Commit 83e636d

Browse files
committed
(#145) Use waitFor instead of find
1 parent c69a0e1 commit 83e636d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.e2e.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe("E2E drag & drop demo", () => {
7878
await mouse.drag(down(500));
7979
await mouse.move(right(100));
8080
await mouse.leftClick();
81-
const dest = await screen.find("moved_trash.png");
81+
const dest = await screen.waitFor("moved_trash.png");
8282
expect(Math.abs(dest.left - expected.left)).toBeLessThanOrEqual(maxDiff);
8383
expect(Math.abs(dest.top - expected.top)).toBeLessThanOrEqual(maxDiff);
8484
expect(Math.abs(dest.width - expected.width)).toBeLessThanOrEqual(maxDiff);

0 commit comments

Comments
 (0)