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:
parent
7c8262ccc9
commit
6308f5eb51
@ -19,11 +19,11 @@ describe("Text field", () => {
|
|||||||
describe("Empty text field", () => {
|
describe("Empty text field", () => {
|
||||||
let pages;
|
let pages;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeEach(async () => {
|
||||||
pages = await loadAndWait("file_pdfjs_form.pdf", getSelector("7R"));
|
pages = await loadAndWait("file_pdfjs_form.pdf", getSelector("7R"));
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterEach(async () => {
|
||||||
await closePages(pages);
|
await closePages(pages);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user