diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 63c516074f..2978f58c81 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -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 diff --git a/modules/package.json b/modules/package.json index 6e5ec59c17..40d99ccd15 100644 --- a/modules/package.json +++ b/modules/package.json @@ -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": { diff --git a/modules/playwright.config.ts b/modules/playwright.config.ts index 3eab206c06..6d3d13fc81 100644 --- a/modules/playwright.config.ts +++ b/modules/playwright.config.ts @@ -91,12 +91,7 @@ export default defineConfig({ 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}`,