mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #17021 from timvandermeij/fix-intermittent-autoprint
Fix integration test "Interaction in autoprint.pdf must check if printing is triggered when the document is open"
This commit is contained in:
commit
9b464047bc
1 changed files with 1 additions and 7 deletions
|
@ -1793,13 +1793,7 @@ describe("Interaction", () => {
|
|||
it("must check if printing is triggered when the document is open", async () => {
|
||||
await Promise.all(
|
||||
pages.map(async ([browserName, page]) => {
|
||||
await page.waitForFunction(
|
||||
"window.PDFViewerApplication.scriptingReady === true"
|
||||
);
|
||||
|
||||
await page.waitForFunction(
|
||||
`document.querySelector(".printedPage") !== null`
|
||||
);
|
||||
await page.waitForSelector(".printedPage");
|
||||
await page.keyboard.press("Escape");
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue