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:
commit
39a1fc6992
2 changed files with 41 additions and 8 deletions
|
@ -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];
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue