From 6308f5eb514ecafacb2f5ead31a492abb0cc081e Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 13 Apr 2025 14:20:18 +0200 Subject: [PATCH] Isolate the text field integration tests To avoid being able to introduce dependencies between tests this commit makes sure that we close the document between tests so that we can't accidentally rely on state set by a previous test. --- test/integration/text_field_spec.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/text_field_spec.mjs b/test/integration/text_field_spec.mjs index aa8fd8725..9995fa726 100644 --- a/test/integration/text_field_spec.mjs +++ b/test/integration/text_field_spec.mjs @@ -19,11 +19,11 @@ describe("Text field", () => { describe("Empty text field", () => { let pages; - beforeAll(async () => { + beforeEach(async () => { pages = await loadAndWait("file_pdfjs_form.pdf", getSelector("7R")); }); - afterAll(async () => { + afterEach(async () => { await closePages(pages); });