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.
This commit is contained in:
parent
efe4a3455a
commit
923753a66b
@ -400,6 +400,14 @@ describe("PDF viewer", () => {
|
|||||||
it("must check that canvas perfectly fits the page whatever the zoom level is", async () => {
|
it("must check that canvas perfectly fits the page whatever the zoom level is", async () => {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
pages.map(async ([browserName, page]) => {
|
pages.map(async ([browserName, page]) => {
|
||||||
|
if (browserName === "chrome") {
|
||||||
|
// Skip the test for Chrome as `scrollIntoView` below hangs since
|
||||||
|
// Puppeteer 24.5.0 and higher.
|
||||||
|
// See https://github.com/mozilla/pdf.js/issues/19811.
|
||||||
|
// TODO: Remove this check once the issue is fixed.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// The pdf has a single page with a red background.
|
// The pdf has a single page with a red background.
|
||||||
// We set the viewer background to red, because when screenshoting
|
// We set the viewer background to red, because when screenshoting
|
||||||
// some part of the viewer background can be visible.
|
// some part of the viewer background can be visible.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user