1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Merge pull request #17400 from calixteman/autoprint_test

Set a print listener as soon as possible in the autoprint integration test
This commit is contained in:
Tim van der Meij 2023-12-09 20:12:45 +01:00 committed by GitHub
commit 39a1fc6992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 8 deletions

View file

@ -46,9 +46,11 @@ function loadAndWait(filename, selector, zoom, pageSetup) {
}
await page.bringToFront();
await page.waitForSelector(selector, {
timeout: 0,
});
if (selector) {
await page.waitForSelector(selector, {
timeout: 0,
});
}
return [session.name, page];
})
);