From 5ffaa6416791089b5ffcd18ac433e9aca2bb95f0 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Tue, 20 Jun 2023 17:36:31 +0200 Subject: [PATCH] Fix integration tests --- test/integration/annotation_spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/annotation_spec.js b/test/integration/annotation_spec.js index b082841ce..f32a06b85 100644 --- a/test/integration/annotation_spec.js +++ b/test/integration/annotation_spec.js @@ -21,7 +21,7 @@ const { } = require("./test_utils.js"); describe("Annotation highlight", () => { - fdescribe("annotation-highlight.pdf", () => { + describe("annotation-highlight.pdf", () => { let pages; beforeAll(async () => { @@ -459,12 +459,12 @@ describe("ResetForm action", () => { await closePages(pages); }); - it("must check that the annotation has a popup", async () => { + it("must check that the FreeText annotation has a popup", async () => { await Promise.all( pages.map(async ([browserName, page]) => { await page.click("[data-annotation-id='10R']"); await page.waitForFunction( - `document.querySelector("[data-annotation-id='10R'] .popupWrapper").hidden !== undefined` + `document.querySelector("[data-annotation-id='10R']").hidden === false` ); }) ); @@ -487,7 +487,7 @@ describe("ResetForm action", () => { await closePages(pages); }); - it("must check that the annotation has a popup", async () => { + it("must check that the Ink annotation has a popup", async () => { await Promise.all( pages.map(async ([browserName, page]) => { await page.waitForFunction(