Skip to content

Commit 19a50ff

Browse files
committed
Updated threshold for drag & drop test
1 parent d047132 commit 19a50ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.e2e.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ describe("E2E drag & drop demo", () => {
7979
await mouse.move(right(100));
8080
await mouse.leftClick();
8181
const dest = await screen.find("moved_trash.png");
82-
expect(Math.abs(dest.left - expected.left)).toBeLessThan(maxDiff);
83-
expect(Math.abs(dest.top - expected.top)).toBeLessThan(maxDiff);
84-
expect(Math.abs(dest.width - expected.width)).toBeLessThan(maxDiff);
85-
expect(Math.abs(dest.height - expected.height)).toBeLessThan(maxDiff);
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);
85+
expect(Math.abs(dest.height - expected.height)).toBeLessThanOrEqual(maxDiff);
8686
});
8787
});
8888

0 commit comments

Comments
 (0)