Fix playwright modules tests

This commit is contained in:
Michael Telatynski
2026-06-09 15:46:41 +01:00
parent a0ed801d00
commit a16b72732e
2 changed files with 19 additions and 3 deletions
+3 -3
View File
@@ -5,9 +5,9 @@
"scripts": {
"lint:js": "eslint --max-warnings 0 */src -c ./.eslintrc.cjs",
"lint:ts": "tsc --noEmit",
"test:playwright": "playwright test",
"test:playwright:open": "yarn test:playwright --ui",
"test:playwright:screenshots": "playwright-screenshots yarn test:playwright --update-snapshots --grep @screenshot"
"test:playwright": "nx test:playwright --",
"test:playwright:open": "nx test:playwright -- --ui",
"test:playwright:screenshots": "nx test:playwright:screenshots --"
},
"devDependencies": {
"@element-hq/element-web-playwright-common": "workspace:*",
+16
View File
@@ -0,0 +1,16 @@
{
"$schema": "../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"targets": {
"test:playwright": {
"command": "playwright test",
"options": { "cwd": "modules" },
"dependsOn": ["^build:playwright"]
},
"test:playwright:screenshots": {
"command": "playwright-screenshots playwright test --update-snapshots --grep @screenshot",
"options": { "cwd": "modules" },
"dependsOn": ["^build:playwright"]
}
}
}