Skip to content

Commit

Permalink
Merge pull request mozilla#17021 from timvandermeij/fix-intermittent-…
Browse files Browse the repository at this point in the history
…autoprint

Fix integration test "Interaction in autoprint.pdf must check if printing is triggered when the document is open"
  • Loading branch information
timvandermeij authored Sep 24, 2023
2 parents 57f548c + b41bca7 commit 9b46404
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/integration/scripting_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
})
);
Expand Down

0 comments on commit 9b46404

Please sign in to comment.