Remove Escape key press from the autoprint integration test

It's not necessary because we have configured silent printing for
Firefox and Chrome in the browser arguments we pass in `test.mjs`. This
means that the print dialog is not even shown at all or disappears
automatically once printing is done, so the Escape key press serves no
purpose. Since it has been shown to time out, likely because the page
loses focus during printing, and because the page itself doesn't know
when the printing dialog is shown and we therefore can't possibly do the
key press at the right time anyway, this commit gets rid of it to
stabilize the test.
This commit is contained in:
Tim van der Meij 2023-10-14 18:02:02 +02:00
parent 5c45dfa0ae
commit 48e41617f5
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -1793,7 +1793,6 @@ describe("Interaction", () => {
await Promise.all(
pages.map(async ([browserName, page]) => {
await page.waitForSelector(".printedPage");
await page.keyboard.press("Escape");
})
);
});