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
@ -1793,13 +1793,7 @@ describe("Interaction", () => {
|
|||||||
it("must check if printing is triggered when the document is open", async () => {
|
it("must check if printing is triggered when the document is open", async () => {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
pages.map(async ([browserName, page]) => {
|
pages.map(async ([browserName, page]) => {
|
||||||
await page.waitForFunction(
|
await page.waitForSelector(".printedPage");
|
||||||
"window.PDFViewerApplication.scriptingReady === true"
|
|
||||||
);
|
|
||||||
|
|
||||||
await page.waitForFunction(
|
|
||||||
`document.querySelector(".printedPage") !== null`
|
|
||||||
);
|
|
||||||
await page.keyboard.press("Escape");
|
await page.keyboard.press("Escape");
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user