Files
3cda68c5c7 E2E/Playwright: Add testcontainers to playwright-lib (#37570)
* add testcontainers to playwright-lib

* include retry mechanism for transient failures

* - Introduced a new command `testcontainers:up` in package.json to run Playwright tests with Testcontainers.
- Created a standalone Playwright configuration file `playwright.testcontainers-up.config.ts` for managing Testcontainers.
- Added a no-op test `testcontainers_up.spec.ts` to ensure the Testcontainers stack is up during the test run.
- Implemented a global setup script `testcontainers_up_global_setup.ts` to start and stop the Testcontainers stack.
- Updated dependencies in package.json, including adding `chalk` for logging.

* fix package-lock

* fix tsc and restore waiting for all migrations to complete

---------

Co-authored-by: Mattermost Build <[email protected]>
2026-07-28 10:06:36 +02:00

77 lines
2.1 KiB
JSON

{
"name": "@mattermost/playwright-lib",
"version": "11.10.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": "module",
"files": [
"dist"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"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.12.1",
"@azure/storage-blob": "12.33.0",
"@mattermost/client": "file:../../../webapp/platform/client",
"@mattermost/types": "file:../../../webapp/platform/types",
"@percy/cli": "1.32.2",
"@percy/playwright": "1.1.0",
"@testcontainers/postgresql": "12.0.4",
"async-wait-until": "2.0.31",
"axe-core": "4.12.1",
"chalk": "5.6.2",
"deepmerge": "4.3.1",
"dotenv": "17.4.2",
"ldapts": "9.0.0",
"luxon": "3.7.2",
"mime-types": "3.0.2",
"minio": "8.0.7",
"testcontainers": "12.0.4",
"uuid": "14.0.1"
},
"devDependencies": {
"@rollup/plugin-typescript": "12.3.0",
"@types/luxon": "3.7.2",
"@types/mime-types": "3.0.1",
"@types/node": "26.0.1",
"rollup": "4.62.2",
"rollup-plugin-copy": "3.5.0"
},
"peerDependencies": {
"@playwright/test": ">=1.59.0"
}
}