We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 205fe25 + 4fd3bad commit a40df9aCopy full SHA for a40df9a
1 file changed
test/integration/viewer_spec.mjs
@@ -1453,10 +1453,12 @@ describe("PDF viewer", () => {
1453
const rect = await getRect(page, annotationSelector);
1454
const containerRect = await getRect(page, "#viewerContainer");
1455
expect(
1456
- Math.abs(2 * (rect.y - containerRect.y) - containerRect.height)
+ Math.abs(
1457
+ 2 * (Math.ceil(rect.y) - containerRect.y) - containerRect.height
1458
+ )
1459
)
1460
.withContext(`In ${browserName}`)
- .toBeLessThan(1);
1461
+ .toBeLessThanOrEqual(1);
1462
})
1463
);
1464
});
0 commit comments