Merge pull request #33088 from element-hq/t3chguy/monorepo-playwright-common

Absorb remainder of playwright-common from element-modules
This commit is contained in:
Michael Telatynski
2026-04-10 17:38:27 +00:00
committed by GitHub
40 changed files with 3658 additions and 81 deletions
+4 -5
View File
@@ -30,9 +30,9 @@
"lint:types": "nx lint:types",
"lint:style": "stylelint \"res/css/**/*.pcss\"",
"test": "nx test:unit",
"test:playwright": "playwright test",
"test:playwright:open": "pnpm test:playwright --ui",
"test:playwright:screenshots": "playwright-screenshots-experimental pnpm playwright test --update-snapshots --project=Chrome --grep @screenshot",
"test:playwright": "nx test:playwright --",
"test:playwright:open": "nx test:playwright -- --ui",
"test:playwright:screenshots": "nx test:playwright:screenshots --",
"coverage": "pnpm test --coverage",
"analyse:webpack-bundles": "webpack-bundle-analyzer webpack-stats.json webapp"
},
@@ -127,8 +127,7 @@
"@babel/preset-typescript": "^7.12.7",
"@casualbot/jest-sonar-reporter": "2.5.0",
"@element-hq/element-call-embedded": "0.18.0",
"@element-hq/element-web-playwright-common": "catalog:",
"@element-hq/element-web-playwright-common-local": "workspace:*",
"@element-hq/element-web-playwright-common": "workspace:*",
"@fetch-mock/jest": "^0.2.20",
"@jest/globals": "^30.2.0",
"@peculiar/webcrypto": "^1.4.3",
+11 -1
View File
@@ -44,7 +44,7 @@
"parallel": false,
"cwd": "apps/web"
},
"dependsOn": ["^build"]
"dependsOn": ["^build", "^build:playwright"]
},
"test:unit": {
"executor": "@nx/jest:jest",
@@ -53,6 +53,16 @@
"cwd": "apps/web"
},
"dependsOn": ["^build"]
},
"test:playwright": {
"command": "playwright test",
"options": { "cwd": "apps/web" },
"dependsOn": ["^build:playwright"]
},
"test:playwright:screenshots": {
"command": "playwright-screenshots nx test:playwright --update-snapshots --project=Chrome --grep @screenshot",
"options": { "cwd": "apps/web" },
"dependsOn": ["^build:playwright"]
}
}
}