1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

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.
This commit is contained in:
Tim van der Meij 2025-04-13 14:20:18 +02:00
parent 7c8262ccc9
commit 6308f5eb51
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762

View file

@ -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);
});