Files
sabrilandGitHub 6217247ab2 Cherry-pick #37697 and fix deps for node@20 (#37760)
* Fix Playwright e2e testcontainers crash on Node 20 by pinning testcontainers to 11.14.0

[email protected] depends on undici@^8.5.0, whose webidl module
unconditionally requires markAsUncloneable from node:worker_threads
(added in Node 22.10.0/23.0.0). release-10.11 pins Node 20.11 via
.nvmrc, so loading playwright.config.ts crashed with
"webidl.util.markAsUncloneable is not a function" before any test
could run.

Pin testcontainers/@testcontainers/postgresql to 11.14.0, whose
undici@^7.x has a safe fallback and no Node 22+ requirement. Verified
the public API used here (GenericContainer, Wait.*, PostgreSqlContainer)
is unchanged between 11.14.0 and 12.0.4.

Also removes the Node 24 setup-node-for-testcontainers workaround steps
in the Playwright CI template added as a stopgap for the same crash,
now unnecessary since testcontainers no longer requires Node 22+.

* ci: remove testcontainers teardown step from playwright e2e workflow (#37697)
2026-07-30 06:14:27 +02:00

75 lines
2.0 KiB
JSON

{
"name": "@mattermost/playwright-lib",
"version": "10.11.0",
"description": "A comprehensive end-to-end testing library for Mattermost web, desktop and plugin applications using Playwright",
"repository": {
"type": "git",
"url": "git+https://github.com/mattermost/mattermost.git"
},
"author": "mattermost",
"license": "MIT",
"bugs": {
"url": "https://github.com/mattermost/mattermost/issues"
},
"homepage": "https://github.com/mattermost/mattermost/tree/master/e2e-tests/playwright/lib#readme",
"type": "commonjs",
"files": [
"dist"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"mattermost",
"e2e",
"playwright",
"test-automation"
],
"scripts": {
"build": "rollup -c --bundleConfigAsCjs",
"build:watch": "npm run build -- --watch",
"build-tsc": "tsc --build --verbose",
"build-tsc:watch": "tsc --watch --preserveWatchOutput",
"clean": "rm -rf dist node_modules *.tsbuildinfo",
"tsc": "tsc -b"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@axe-core/playwright": "4.10.2",
"@azure/storage-blob": "12.33.0",
"@mattermost/client": "file:../../../webapp/platform/client",
"@mattermost/types": "file:../../../webapp/platform/types",
"@percy/cli": "1.31.0",
"@percy/playwright": "1.0.8",
"@testcontainers/postgresql": "11.14.0",
"async-wait-until": "2.0.27",
"axe-core": "4.10.3",
"chalk": "4.1.2",
"deepmerge": "4.3.1",
"dotenv": "17.0.1",
"ldapts": "9.0.0",
"mime-types": "3.0.1",
"minio": "8.0.7",
"testcontainers": "11.14.0",
"uuid": "11.1.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "12.1.4",
"@types/mime-types": "3.0.1",
"@types/node": "24.0.10",
"@types/react": "19.1.8",
"rollup": "4.44.2",
"rollup-plugin-copy": "3.5.0"
},
"peerDependencies": {
"@playwright/test": "1.53.2"
}
}