This seems to happen more often now, but interestingly it only seems to happen on Linux. The last run was in https://github.com/mozilla/pdf.js/pull/13021#issuecomment-786012076. @calixteman Could you take a look at this to see if we can make the tests pass again?

The relevant log output is:

```
Failures:
1) Interaction in js-colors.pdf must changes colors
  Message:
[31m    In firefox: Expected 'rgba(0, 54, 255, 0.13)' to equal 'rgb(255, 0, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgba(0, 54, 255, 0.13)' to equal 'rgb(255, 0, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:661:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:667:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:676:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:661:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:667:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:676:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:661:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:667:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:676:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 0, 255)' to equal 'rgb(255, 0, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:661:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(255, 0, 0)' to equal 'rgb(0, 255, 0)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:667:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  Message:
[31m    In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.[0m
  Stack:
    Error: In firefox: Expected 'rgb(0, 255, 0)' to equal 'rgb(0, 0, 255)'.
        at <Jasmine>
        at Promise.all.pages.map (/home/ubuntu/pdfjs/botio-files-pdfjs/private/e2b7f68c964756b/test/integration/scripting_spec.js:676:16)
        at process._tickCallback (internal/process/next_tick.js:68:7)
```
/* Copyright 2020 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
const { clearInput, closePages, loadAndWait } = require("./test_utils.js");
describe("Interaction", () => {
  async function actAndWaitForInput(page, selector, action, clear = true) {
    if (clear) {
      await clearInput(page, selector);