We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c69a0e1 commit 83e636dCopy full SHA for 83e636d
index.e2e.spec.ts
@@ -78,7 +78,7 @@ describe("E2E drag & drop demo", () => {
78
await mouse.drag(down(500));
79
await mouse.move(right(100));
80
await mouse.leftClick();
81
- const dest = await screen.find("moved_trash.png");
+ const dest = await screen.waitFor("moved_trash.png");
82
expect(Math.abs(dest.left - expected.left)).toBeLessThanOrEqual(maxDiff);
83
expect(Math.abs(dest.top - expected.top)).toBeLessThanOrEqual(maxDiff);
84
expect(Math.abs(dest.width - expected.width)).toBeLessThanOrEqual(maxDiff);
0 commit comments