npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN deprecated highlight.js@9.18.5: Support has ended for 9.x series. Upgrade to @latest npm WARN deprecated core-js@2.6.9: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. > postinstall > cross-env PUPPETEER_PRODUCT=firefox node node_modules/puppeteer/install.mjs Firefox Nightly (122.0a1) downloaded to /home/ubuntu/.cache/puppeteer/firefox/linux-122.0a1 added 1425 packages, and audited 1883 packages in 21s 222 packages are looking for funding run `npm fund` for details 36 vulnerabilities (11 moderate, 25 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. >> Deploying cached PDF files >> Deploying custom files >> Integration Tests [11:35:06] Using gulpfile ~/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/gulpfile.mjs [11:35:06] Starting 'integrationtest'... [11:35:06] Starting 'setTestEnv'... [11:35:06] Finished 'setTestEnv' after 949 μs [11:35:06] Starting 'generic'... [11:35:06] Starting 'createBuildNumber'... ### Getting extension build number Extension build number: 306 [11:35:06] Finished 'createBuildNumber' after 45 ms [11:35:06] Starting 'locale'... ### Building localization files [11:35:06] Finished 'locale' after 197 ms [11:35:06] Starting 'scriptingGeneric'... ### Building default preferences [11:35:07] asset app_options.mjs 9.82 KiB [emitted] [javascript module] (name: main) webpack 5.89.0 compiled successfully [11:35:08] asset pdf.scripting.mjs 103 KiB [emitted] [javascript module] (name: main) webpack 5.89.0 compiled successfully [11:35:08] Finished 'scriptingGeneric' after 1.93 s [11:35:08] Starting 'prefsGeneric'... ### Parsing default preferences [11:35:08] Finished 'prefsGeneric' after 3.52 ms [11:35:08] Starting 'createGeneric'... ### Creating generic viewer [BABEL] Note: The code generator has deoptimised the styling of /home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/external/quickjs/quickjs-eval.js as it exceeds the max of 500KB. [11:35:14] asset pdf.sandbox.mjs 613 KiB [emitted] [javascript module] [big] (name: main) webpack 5.89.0 compiled successfully [11:35:20] asset pdf.mjs 571 KiB [emitted] [javascript module] [big] (name: main) webpack 5.89.0 compiled successfully [11:35:22] asset pdf.worker.mjs 1.79 MiB [emitted] [javascript module] [big] (name: main) webpack 5.89.0 compiled successfully [11:35:22] asset viewer.mjs 512 KiB [emitted] [javascript module] [big] (name: main) webpack 5.89.0 compiled successfully [11:35:22] Finished 'createGeneric' after 15 s [11:35:22] Finished 'generic' after 17 s [11:35:22] Starting 'runIntegrationTest'... ### Running integration tests Server running at http://127.0.0.1:45551/ Started .TEST-PASSED | must build structure that maps to text layer .TEST-PASSED | must check that some spans are linked to some annotations thanks to aria-owns .TEST-PASSED | must check that the text fields are in the visual order .TEST-PASSED | must check the id in aria-controls .TEST-PASSED | must check the aria-label linked to the stamp annotation .TEST-PASSED | must check that the stamp annotation is linked to the struct tree .TEST-PASSED | must show a popup on mouseover .TEST-PASSED | must let checkboxes with the same name behave like radio buttons .TEST-PASSED | must check the checkbox .TEST-PASSED | must check the checkbox .TEST-PASSED | must update all the fields with the same value .TEST-PASSED | must reset a formatted value after a change .TEST-PASSED | must let checkboxes with the same name behave like radio buttons .TEST-PASSED | must reset all fields .TEST-PASSED | must reset some fields .TEST-PASSED | must check that the FreeText annotation has a popup .TEST-PASSED | must check that the Ink annotation has a popup .TEST-PASSED | must check the content of the text field .TEST-PASSED | must check that the popup has the correct visibility .TEST-PASSED | must check that we've all the contents on copy/paste .TEST-PASSED | must check that the ligatures have been removed when the text has been copied .TEST-PASSED | must highlight text in the right position .TEST-PASSED | must search xfa correctly .TEST-PASSED | must write a string in a FreeText editor .TEST-PASSED | must copy/paste .TEST-PASSED | must clear all .TEST-PASSED | must check that a paste has been undone .TEST-PASSED | must check that aria-owns is correct .TEST-PASSED | must check that right click doesn't select FTEST-UNEXPECTED-FAIL | must check that text change can be undone/redone .TEST-PASSED | must select/unselect several editors and check copy, paste and delete operations .TEST-PASSED | must serialize invisible annotations .TEST-PASSED | must take the media box into account .TEST-PASSED | must move an annotation .TEST-PASSED | must update an existing annotation .TEST-PASSED | must update an existing annotation but not an empty one .TEST-PASSED | must delete an existing annotation .TEST-PASSED | must copy and paste an existing annotation .TEST-PASSED | must move an annotation .TEST-PASSED | must not remove an empty annotation .TEST-PASSED | must hide the popup when editing .TEST-PASSED | must check that the dimensions of a rotated annotations are correct after a font size change .TEST-PASSED | must delete invisible annotations .TEST-PASSED | must open an existing annotation and check that the position are good .TEST-PASSED | must open an existing rotated annotation and check that the position are good .TEST-PASSED | must check that the shortcuts are working correctly .TEST-PASSED | must check the position of moved editor .TEST-PASSED | must check arrow doesn't move an editor when a slider is focused .TEST-PASSED | must check the position of an empty freetext .TEST-PASSED | must check that the focus is on the right page .TEST-PASSED | must keep the focus .TEST-PASSED | must move several annotations .TEST-PASSED | must check that selected editor stay selected .TEST-PASSED | must check that first annotation is selected without errors .TEST-PASSED | must check that a deleted freetext can be restored .TEST-PASSED | must check that the parent structTree id is correct .TEST-PASSED | must check the text can be selected with the mouse .TEST-PASSED | must create an editor from the toolbar .TEST-PASSED | must create an editor with keyboard .TEST-PASSED | must check the keyboard event is limited to the input .TEST-PASSED | must check that a freetext is deleted .TEST-PASSED | must check that freetexts are deleted .TEST-PASSED | must draw, undo a deletion and check that the editors are not selected .TEST-PASSED | must draw, undo/redo and check that the editor don't move .TEST-PASSED | must draw something .TEST-PASSED | must check that the editor layer is disabled .TEST-PASSED | must check that the ink editor is committed .TEST-PASSED | must check that first text field has focus .TEST-PASSED | must show a text field and then make in invisible when content is removed .TEST-PASSED | must format the field with 2 digits and leave field with a click .TEST-PASSED | must format the field with 2 digits, leave field with a click and again .TEST-PASSED | must format the field with 2 digits and leave field with a TAB .TEST-PASSED | must format the field with 2 digits and hit ESC .TEST-PASSED | must format the field with 2 digits on key ENTER .TEST-PASSED | must reset all .TEST-PASSED | must show values in a text input when clicking on radio buttons .TEST-PASSED | must show values in a text input when clicking on checkboxes .TEST-PASSED | must show values in a text input when clicking on checkboxes in a group .TEST-PASSED | must show values in a text input when clicking on checkboxes or radio with no actions .TEST-PASSED | must execute WillPrint and DidPrint actions .TEST-PASSED | must execute WillSave and DidSave actions .TEST-PASSED | must execute PageOpen and PageClose actions .TEST-PASSED | must print authors in a text field .TEST-PASSED | must print selected value in a text field .TEST-PASSED | must clear and restore list elements .TEST-PASSED | must insert new elements .TEST-PASSED | must delete some element .TEST-PASSED | must change colors .TEST-PASSED | must compute sum of fields .TEST-PASSED | must check page index .TEST-PASSED | must check display .TEST-PASSED | must update fields with the same name from JS .TEST-PASSED | must print securityHandler value in a text field .TEST-PASSED | must check input for US zip format .TEST-PASSED | must check input for US phone number (long) format .TEST-PASSED | must check input for US phone number (short) format .TEST-PASSED | must convert input to uppercase .TEST-PASSED | must check that an infinite loop is not triggered .TEST-PASSED | must check that field value is correctly updated .TEST-PASSED | must check that field value is correctly formatted .TEST-PASSED | must check that a button and text field with a border are hidden .TEST-PASSED | must check that data-main-rotation is correct .TEST-PASSED | must check that a values is correctly updated on a field and its siblings .TEST-PASSED | must check that charLimit is correctly set .TEST-PASSED | must check field value is treated by default as a number .TEST-PASSED | must check field value is correctly updated when committed with ENTER key .TEST-PASSED | must check field value is correctly updated when committed with ENTER key .TEST-PASSED | must check the field value set when the document is open .TEST-PASSED | must check the format action is called when setFocus is used .TEST-PASSED | must check if printing is triggered when the document is open .TEST-PASSED | must check that a field value with a number isn't changed .TEST-PASSED | must check that a field value with a number with a comma has the correct value .TEST-PASSED | must check that a field has the correct value when a choice is changed .TEST-PASSED | must check that a field has the correct formatted value .TEST-PASSED | must check that a field is empty .TEST-PASSED | must check that a field has the correct formatted value .TEST-PASSED | must check that invisible fields are made visible .TEST-PASSED | must check that checkboxes are correctly resetted .TEST-PASSED | must check that focus/blur callbacks aren't called .TEST-PASSED | must check that blur callback is called .TEST-PASSED | must check that only one radio is selected .TEST-PASSED | must load a PNG which is bigger than a page .TEST-PASSED | must load a SVG .TEST-PASSED | must check that an added image stay within the page .TEST-PASSED | must check that the alt-text flow is correctly implemented .TEST-PASSED | must check that the dimensions change Failures: 1) FreeText Editor FreeText must check that text change can be undone/redone Message:  Error: 'left' is already pressed. Stack: at CdpMouse.down (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js:300:19) at CdpMouse.click (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js:352:27) at UserContext. (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/test/integration/freetext_editor_spec.mjs:550:26) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 126 specs, 1 failure Finished in 276.999 seconds file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:92 #error = new ProtocolError(); ^ ProtocolError: Protocol error (Target.attachToTarget): can't access property "loadFrameScript", messageManager is null registerFramescript@chrome://remote/content/cdp/sessions/TabSession.sys.mjs:103:5 TabSession@chrome://remote/content/cdp/sessions/TabSession.sys.mjs:42:10 attachToTarget@chrome://remote/content/cdp/domains/parent/Target.sys.mjs:187:24 execute@chrome://remote/content/cdp/domains/DomainCache.sys.mjs:95:25 execute@chrome://remote/content/cdp/sessions/Session.sys.mjs:59:25 onPacket@chrome://remote/content/cdp/CDPConnection.sys.mjs:251:36 onMessage@chrome://remote/content/server/WebSocketTransport.sys.mjs:127:18 handleEvent@chrome://remote/content/server/WebSocketTransport.sys.mjs:109:14 at (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:92:14) at new Callback (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:96:16) at CallbackRegistry.create (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:29:26) at Connection._rawSend (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:88:26) at Connection.send (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:82:21) at Connection._createSession (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:187:42) at createSession (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:138:37) at PageTarget.page (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js:194:41) at file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/0a465c44e7e1929/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:279:27 at Array.map () Node.js v18.16.0 [11:40:05] Finished 'runIntegrationTest' after 4.7 min [11:40:05] Finished 'integrationtest' after 4.98 min !botio_message:+ **Integration Tests:** FAILED >> Updating local PDF cache