Fix playwright config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user