1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-28 23:28:16 +02:00

Fix some integration tests

This commit is contained in:
Calixte Denizet 2021-05-08 15:36:16 +02:00
parent 0ec945ce8c
commit 38503d1c5f
2 changed files with 16 additions and 0 deletions

View file

@ -72,6 +72,10 @@ describe("Checkbox annotation", () => {
pages.map(async ([browserName, page]) => {
for (const selector of selectors) {
await page.click(selector);
await page.waitForFunction(
`document.querySelector("${selector} > :first-child").checked`
);
for (const otherSelector of selectors) {
const checked = await page.$eval(
`${otherSelector} > :first-child`,