Introduction date: June 17, 2023
Introduction PR: https://github.com/mozilla/pdf.js/commit/7e3941da9d4647a706628cae02adb54966e80cc4 (/cc @calixteman)
Type: intermittent (sometimes it works, indicating a possible timing/waiting issue)
OS: Windows
Logs: http://54.193.163.58:8877/d67e98b920493b4/output.txt
Traceback:

```
Failures:
2) Interaction in issue15053.pdf must check that a button and text field with a border are hidden
  Message:
[31m    In firefox: Expected 'visible' to equal 'hidden'.[0m
  Stack:
        at <Jasmine>
        at C:\pdfjs\botio-files-pdfjs\private\d67e98b920493b4\test\integration\scripting_spec.js:1422:63
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
        at async Promise.all (index 0)
        at async UserContext.<anonymous> (C:\pdfjs\botio-files-pdfjs\private\d67e98b920493b4\test\integration\scripting_spec.js:1394:7)
  Message:
[31m    In firefox: Expected 'visible' to equal 'hidden'.[0m
  Stack:
        at <Jasmine>
        at C:\pdfjs\botio-files-pdfjs\private\d67e98b920493b4\test\integration\scripting_spec.js:1428:63
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
        at async Promise.all (index 0)
        at async UserContext.<anonymous> (C:\pdfjs\botio-files-pdfjs\private\d67e98b920493b4\test\integration\scripting_spec.js:1394:7)
```
await page.focus(getSelector("30R"));
        await page.type(getSelector("30R"), "123A", { delay: 100 });
        await page.waitForFunction(
          `${getQuerySelector("30R")}.value !== "123A"`
        );
        let text = await page.$eval(getSelector(`30R`), el => el.value);
        expect(text).withContext(`In ${browserName}`).toEqual("123");
        await page.focus(getSelector("30R"));
        await page.type(getSelector("30R"), "-456", { delay: 100 });
        await page.click("[data-annotation-id='29R']");
        await page.waitForFunction(
          `${getQuerySelector("30R")}.value !== "123-456"`
        );
        text = await page.$eval(getSelector("30R"), el => el.value);
        expect(text).withContext(`In ${browserName}`).toEqual("");
        await page.focus(getSelector("30R"));
        await page.type(getSelector("30R"), "123-4567", { delay: 100 });
        await page.click("[data-annotation-id='29R']");
        text = await page.$eval(getSelector("30R"), el => el.value);
        expect(text).withContext(`In ${browserName}`).toEqual("123-4567");
      }
    });
  });
  describe("in issue14862.pdf", () => {
    let pages;
    beforeAll(async () => {
      pages = await loadAndWait("issue14862.pdf", getSelector("27R"));
      pages.map(async ([, page]) => {
        page.on("dialog", async dialog => {
          await dialog.dismiss();