Skip to content

Commit 9b46404

Browse files
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"
2 parents 57f548c + b41bca7 commit 9b46404

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/integration/scripting_spec.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,13 +1793,7 @@ describe("Interaction", () => {
17931793
it("must check if printing is triggered when the document is open", async () => {
17941794
await Promise.all(
17951795
pages.map(async ([browserName, page]) => {
1796-
await page.waitForFunction(
1797-
"window.PDFViewerApplication.scriptingReady === true"
1798-
);
1799-
1800-
await page.waitForFunction(
1801-
`document.querySelector(".printedPage") !== null`
1802-
);
1796+
await page.waitForSelector(".printedPage");
18031797
await page.keyboard.press("Escape");
18041798
})
18051799
);

0 commit comments

Comments
 (0)