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:
Tim van der Meij 2023-09-24 13:37:18 +02:00 committed by GitHub
commit 9b464047bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
})
);