Skip to content

Commit 923753a

Browse files
committed
Skip the "must check that canvas perfectly fits the page whatever the zoom level" integration test in Chrome
This is a temporary measure to reduce noise until #19811 is fixed. Note that this shouldn't be an issue in terms of coverage because we still run the test in Firefox.
1 parent efe4a34 commit 923753a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/integration/viewer_spec.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,14 @@ describe("PDF viewer", () => {
400400
it("must check that canvas perfectly fits the page whatever the zoom level is", async () => {
401401
await Promise.all(
402402
pages.map(async ([browserName, page]) => {
403+
if (browserName === "chrome") {
404+
// Skip the test for Chrome as `scrollIntoView` below hangs since
405+
// Puppeteer 24.5.0 and higher.
406+
// See https://github.com/mozilla/pdf.js/issues/19811.
407+
// TODO: Remove this check once the issue is fixed.
408+
return;
409+
}
410+
403411
// The pdf has a single page with a red background.
404412
// We set the viewer background to red, because when screenshoting
405413
// some part of the viewer background can be visible.

0 commit comments

Comments
 (0)