From 5d622ada04790832ed5a51e8e9b28be2d8deb1f0 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Wed, 4 Sep 2024 13:49:02 +0200 Subject: [PATCH] In the autoprint integration test, resolve the promise on 'afterprint' event --- test/integration/scripting_spec.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/scripting_spec.mjs b/test/integration/scripting_spec.mjs index 7ae1e7b46cae5..e472a810cef39 100644 --- a/test/integration/scripting_spec.mjs +++ b/test/integration/scripting_spec.mjs @@ -1764,7 +1764,7 @@ describe("Interaction", () => { }, eventBusSetup: eventBus => { eventBus.on( - "print", + "afterprint", () => { window.PDFViewerApplication._testPrintResolver.resolve(); },