Andy Balaam abae870b83
Improve the toasts fixture of the playwright-common tools (#33158)
* Improve the toasts fixture of the playwright-common tools

* Increase @element-hq/element-web-playwright-common version to 3.2.0

* Default to 2 second wait for IfExists variants

* Set playwright-common version to 4.0.0 due to breaking change

* Move handleToast into a free function

* Rename handleToast to clickToastButton

* Document new param on clickToastButton
2026-04-17 09:15:22 +00:00

46 lines
1.3 KiB
JSON

{
"name": "@element-hq/element-web-playwright-common",
"type": "module",
"version": "4.0.0",
"license": "SEE LICENSE IN README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/element-hq/element-web.git",
"directory": "packages/playwright-common"
},
"author": "element-hq",
"engines": {
"node": ">=20.0.0"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
"bin": {
"playwright-screenshots": "playwright-screenshots.sh"
},
"scripts": {
"prepack": "nx build:playwright",
"lint:types": "nx lint:types"
},
"devDependencies": {
"@element-hq/element-web-module-api": "workspace:*",
"@types/lodash-es": "^4.17.12",
"typescript": "^5.8.2",
"wait-on": "^9.0.4"
},
"dependencies": {
"@axe-core/playwright": "^4.10.1",
"@testcontainers/postgresql": "^11.0.0",
"glob": "^13.0.5",
"lodash-es": "^4.17.23",
"mailpit-api": "^1.2.0",
"strip-ansi": "^7.1.0",
"testcontainers": "^11.0.0",
"yaml": "^2.7.0"
},
"peerDependencies": {
"@element-hq/element-web-module-api": "*",
"@playwright/test": "catalog:",
"playwright-core": "catalog:"
}
}