From 600a4bb1eef52a09ec110b7918e2a0e936e66add Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sat, 16 May 2026 16:48:45 +0200 Subject: [PATCH] Fix missing page closing for two viewer integration tests This caused the tab to remain open after the tests ran, which meant that a total of ~120 MB of memory was not being freed. --- test/integration/viewer_spec.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/viewer_spec.mjs b/test/integration/viewer_spec.mjs index deb059ef1..5dd5b2d31 100644 --- a/test/integration/viewer_spec.mjs +++ b/test/integration/viewer_spec.mjs @@ -1403,6 +1403,10 @@ describe("PDF viewer", () => { ); }); + afterEach(async () => { + await closePages(pages); + }); + it("keeps the content under the pinch centre fixed on the screen", async () => { await Promise.all( pages.map(async ([browserName, page]) => { @@ -1610,6 +1614,10 @@ describe("PDF viewer", () => { ); }); + afterEach(async () => { + await closePages(pages); + }); + it("Check that the top right corner of the annotation is centered vertically", async () => { await Promise.all( pages.map(async ([browserName, page]) => {