Skip to content

Commit 6308f5e

Browse files
committed
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.
1 parent 7c8262c commit 6308f5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/integration/text_field_spec.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ describe("Text field", () => {
1919
describe("Empty text field", () => {
2020
let pages;
2121

22-
beforeAll(async () => {
22+
beforeEach(async () => {
2323
pages = await loadAndWait("file_pdfjs_form.pdf", getSelector("7R"));
2424
});
2525

26-
afterAll(async () => {
26+
afterEach(async () => {
2727
await closePages(pages);
2828
});
2929

0 commit comments

Comments
 (0)