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

Merge pull request #16570 from calixteman/it

Fix integration tests
This commit is contained in:
calixteman 2023-06-20 18:10:50 +02:00 committed by GitHub
commit a656d71959
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(