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.
This commit is contained in:
Tim van der Meij 2026-05-16 16:48:45 +02:00
parent c66f9f2497
commit 600a4bb1ee
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -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]) => {