Repository navigation
Description
New Feature / Enhancement Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
Current Limitation
Parse Dashboard uses puppeteer 24.43.1 in the e2e test src/lib/tests/e2e/dashboard.e2e.test.js and in browser control (Parse-Dashboard/browser-control/). Puppeteer 24 can't install Chrome on Node.js 24.16.0 and later or on Node.js 26.1.0 and later. Its postinstall script stops unpacking the Chrome archive without an error, so npm ci succeeds, but launching the browser then fails with Could not find Chrome (ver. …), and a later install into the same cache fails with Failed to set up chrome v…!, see puppeteer/puppeteer#14957 and puppeteer/puppeteer#15071. CI doesn't hit this yet, because its test matrix uses Node.js 24.1.0, but the Node 26 job that #3519 proposes, with Node.js 26.13.0, would. Puppeteer 25 fixes this by unpacking the browser with the operating system's archive tools instead of extract-zip (puppeteer/puppeteer#14960).
Puppeteer is a dev dependency, so this doesn't affect installations of Parse Dashboard or its Docker image.
#3514 upgrades puppeteer to 25.16.0, but it can't be merged as is, see #3499:
- Puppeteer 25 requires Node.js 22.12.0 or later, but Parse Dashboard supports Node.js 20 (
>=20.19.0 <21.0.0inengines), and CI tests it on Node.js 20.19.0. - Puppeteer 25 is ESM-only (feat!: move packages to ESM only puppeteer/puppeteer#14355), and Jest 30.0.4 can't load it with
require(), so the e2e test fails on Node.js 20, 22 and 24 withSyntaxError: Unexpected token 'export'. - Browser control uses two APIs that puppeteer 25.0.0 removed, and breaks without an error:
BrowserSessionManager.jscallsbrowser.isConnected(), whichbrowser.connectedreplaces (refactor!: remove deprecated Browser.isConnected() puppeteer/puppeteer#14910). The call throws and the error is only logged, sobrowser.close()never runs, and every session that is ended withDELETE /session/:sessionIdorPOST /cleanup, or that times out, leaves its Chrome process running.BrowserControlAPI.jsclicks withclickCount: 3, whichcountreplaces (refactor!: remove deprecated MouseOptions.clickCount puppeteer/puppeteer#13865). Puppeteer 25 ignoresclickCount, so the triple-click that selects the input's text becomes a single click, and the/typeendpoint inserts the new text into the old value instead of replacing it.
Feature / Enhancement Description
Upgrade puppeteer to version 25 without removing Node.js 20 from engines, because removing it is a breaking change that has to wait for a major release:
-
In the CI test matrix, skip puppeteer's browser download and the e2e test on Node.js 20, as refactor: Bump puppeteer from 24.42.0 to 25.15.0 Parse-SDK-JS#3174 does in the JS SDK. For example, add this step between
actions/checkoutandnpm ci:# puppeteer 25 requires Node 22.12+, so skip its browser download and the e2e test on Node 20 - name: Skip puppeteer if: startsWith(matrix.NODE_VERSION, '20.') run: | echo "PUPPETEER_SKIP_DOWNLOAD=true" >> "$GITHUB_ENV" rm src/lib/tests/e2e/dashboard.e2e.test.js
-
Load puppeteer for the e2e test in a custom Jest test environment. Jest loads test environments with Node.js' own
require(), which can load ES modules since Node.js 20.19.0 and 22.12.0. For example,testing/puppeteerEnvironment.js:const { TestEnvironment } = require('jest-environment-node'); // puppeteer is ESM-only, which Jest's require() can't load. Jest loads test // environments with Node.js' require(), which can, so load puppeteer here. module.exports = class PuppeteerEnvironment extends TestEnvironment { async setup() { await super.setup(); this.global.puppeteer = require('puppeteer'); } };
Add
jest-environment-nodetodevDependencieswith the same version asjest, because the environment requires it directly. The e2e test selects the environment with a/** @jest-environment ./testing/puppeteerEnvironment.js */docblock and usesglobalThis.puppeteerinstead ofrequire('puppeteer'). Jest only reads the first comment of a file, so put the docblock above the copyright header. With refactor: Bump puppeteer from 24.43.1 to 25.16.0 #3514 and this change, all test suites pass locally on Node.js 22.19.0, and the e2e test passes on Node.js 22.19.0, 24.11.1 and 26.13.0, with Jest 30.0.4 and 30.5.2.These simpler options don't work:
- Transpiling puppeteer with
testing/preprocessor.js, as formarked: the e2e test then times out inwaitForSelector. - Loading puppeteer with
process.getBuiltinModule('node:module').createRequire(__filename)('puppeteer'): this works with Jest 30.0.4, but not with Jest 30.5.0 and later, which routeprocess.getBuiltinModulethrough Jest's module system (feat(jest-runtime): automock ESM, sandbox the loader escape hatches, and match Node's graph-error ordering jestjs/jest#16391). - Upgrading Jest: Jest 30.4.0 and later can load ES modules with
require(), but only on Node.js 24.9.0 and later and with--experimental-vm-modules, so not on the Node.js 22 and 24.1.0 jobs.
- Transpiling puppeteer with
-
In browser control, replace
browser.isConnected()withbrowser.connectedandclickCount: 3withcount: 3; puppeteer 24 supports both replacements too. Browser control loads puppeteer withrequire('puppeteer')outside of Jest, which works with puppeteer 25 on Node.js 22.12.0 and later, so change its requirement inParse-Dashboard/browser-control/README.mdfrom Node.js 20.19.0 to 22.12.0. -
Remove the CI step when Parse Dashboard drops Node.js 20.
Example Use Case
- A developer runs the e2e test or uses browser control on Node.js 24.16.0 or later, or on Node.js 26.
- Puppeteer installs Chrome, and the e2e test and browser control work.
Alternatives / Workarounds
- Develop on Node.js 24.15.0 or earlier, where puppeteer 24 still installs Chrome.
- Wait with the upgrade until
enginesno longer includes Node.js 20, as proposed in refactor: Bump puppeteer from 24.43.1 to 25.16.0 #3499. Until then, the e2e test fails withCould not find Chromein theNode 26job that Add support for Node.js 26 #3519 proposes, unless that job skips it.
3rd Party References
- puppeteer/puppeteer#14957 and its duplicate puppeteer/puppeteer#15071
- puppeteer/puppeteer#14960, which replaced
extract-zipin puppeteer 25 - puppeteer-core 25.0.0 release notes, with the removed APIs
- parse-community/Parse-SDK-JS#3174, which skips puppeteer on Node.js 20 in the JS SDK's CI
Activity
parse-github-assistant commentedon Oct 31, 2026
🚀 Thanks for opening this issue! We are excited about your ideas for improvement!
parseplatformorg commentedon Nov 4, 2026
🎉 This change has been released in version 9.3.0-alpha.16
parseplatformorg commentedon Nov 4, 2026
🎉 This change has been released in version 10.0.0