This commit is contained in:
Marc Abramowitz 2025-06-07 08:11:23 -07:00
commit cdb9180629
2 changed files with 21 additions and 1 deletions

View file

@ -60,4 +60,20 @@ jobs:
path: |
client/playwright-report/
client/test-results/
client/results.json
retention-days: 30
- name: Publish Playwright Test Summary
uses: daun/playwright-report-summary@v3
if: always()
with:
report-file: client/results.json
comment-title: "🎭 Playwright E2E Test Results"
job-summary: true
icon-style: "emojis"
custom-info: |
**Test Environment:** Ubuntu Latest, Node.js 18
**Browsers:** Chromium, Firefox
📊 [View Detailed HTML Report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) (download artifacts)
test-command: "npm run test:e2e"

View file

@ -14,7 +14,11 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [["html", { outputFolder: "playwright-report" }], ["line"]],
reporter: [
["html", { outputFolder: "playwright-report" }],
["json", { outputFile: "results.json" }],
["line"],
],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */