Fix playwright config

This commit is contained in:
Michael Telatynski
2026-06-09 13:20:08 +01:00
parent 18a4fcae49
commit ab4f427cac
3 changed files with 4 additions and 9 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ jobs:
write-cache: ${{ github.event_name != 'merge_group' }}
- name: Run Playwright tests
run: pnpm test:playwright --reporter=blob
run: pnpm test:playwright
working-directory: modules
env:
WEBAPP_PATH: ../webapp
+2 -2
View File
@@ -5,8 +5,8 @@
"scripts": {
"lint:js": "eslint --max-warnings 0 */src -c ./.eslintrc.cjs",
"lint:ts": "tsc --noEmit",
"test:playwright": "playwright test -c ./playwright.config.ts",
"test:playwright:open": "yarn test:playwright -c ./playwright.config.ts --ui",
"test:playwright": "playwright test",
"test:playwright:open": "yarn test:playwright --ui",
"test:playwright:screenshots": "playwright-screenshots yarn test:playwright --update-snapshots --grep @screenshot"
},
"devDependencies": {
+1 -6
View File
@@ -91,12 +91,7 @@ export default defineConfig<Options>({
workers: 1,
retries: process.env.CI ? 2 : 0,
reporter: process.env.CI
? [
["list"],
["html"],
["github"],
["@element-hq/element-web-playwright-common/lib/stale-screenshot-reporter.js"],
]
? [["list"], ["blob"], ["github"]]
: [["list"], ["html", { outputFolder: "playwright-html-report" }]],
// When running the browser in docker, set the platform to `linux` as that is the platform where the browser is running
snapshotPathTemplate: `{snapshotDir}/{testFilePath}/{arg}-${process.env.PW_TEST_CONNECT_WS_ENDPOINT ? "linux" : "{platform}"}{ext}`,