From 0f0a7c655827e0cb0332d4cb1d28edd3a31dec51 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 11 Mar 2026 14:42:06 +0000 Subject: [PATCH 1/3] Add default output for vitest Otherwise it's just mysteriously silent. --- packages/element-web-module-api/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/element-web-module-api/vite.config.ts b/packages/element-web-module-api/vite.config.ts index 01d3eeb..4418200 100644 --- a/packages/element-web-module-api/vite.config.ts +++ b/packages/element-web-module-api/vite.config.ts @@ -44,6 +44,7 @@ export default defineConfig({ reporter: "lcov", }, reporters: [ + ["default", { summary: false }], [ "vitest-sonar-reporter", { From fbd7a940f6d4e66b1bfa4f94f73f722046789686 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 11 Mar 2026 14:58:04 +0000 Subject: [PATCH 2/3] Do the same for playwright --- playwright.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 12bc706..36e2d06 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -83,7 +83,9 @@ export default defineConfig({ }, workers: 1, retries: process.env.CI ? 2 : 0, - reporter: process.env.CI ? [["html"], ["github"]] : [["html", { outputFolder: "playwright-html-report" }]], + reporter: process.env.CI + ? [["list"], ["html"], ["github"]] + : [["list"], ["html", { outputFolder: "playwright-html-report" }]], snapshotPathTemplate: "{snapshotDir}/{testFilePath}/{arg}-{platform}{ext}", forbidOnly: !!process.env.CI, }); From 3e0b43bb5789762f9a39d0a8e7a415fd1c8eecac Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 11 Mar 2026 15:02:30 +0000 Subject: [PATCH 3/3] Remove reporter override in github workflow Ported from https://github.com/element-hq/element-modules/pull/212 --- .github/workflows/reusable-playwright-tests.yml | 2 +- playwright.config.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-playwright-tests.yml b/.github/workflows/reusable-playwright-tests.yml index bd52003..691ca21 100644 --- a/.github/workflows/reusable-playwright-tests.yml +++ b/.github/workflows/reusable-playwright-tests.yml @@ -56,7 +56,7 @@ jobs: index-files: '["index.html"]' - name: Run Playwright tests - run: yarn playwright test --reporter=html,@element-hq/element-web-playwright-common/lib/stale-screenshot-reporter.js + run: yarn playwright test - name: Upload blob report to GitHub Actions Artifacts if: always() diff --git a/playwright.config.ts b/playwright.config.ts index 36e2d06..30f7142 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -84,7 +84,12 @@ export default defineConfig({ workers: 1, retries: process.env.CI ? 2 : 0, reporter: process.env.CI - ? [["list"], ["html"], ["github"]] + ? [ + ["list"], + ["html"], + ["github"], + ["@element-hq/element-web-playwright-common/lib/stale-screenshot-reporter.js"], + ] : [["list"], ["html", { outputFolder: "playwright-html-report" }]], snapshotPathTemplate: "{snapshotDir}/{testFilePath}/{arg}-{platform}{ext}", forbidOnly: !!process.env.CI,