Skip to content

Commit cdb9180

Browse files
committed
1 parent 705d7b4 commit cdb9180

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/e2e_tests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,20 @@ jobs:
6060
path: |
6161
client/playwright-report/
6262
client/test-results/
63+
client/results.json
6364
retention-days: 30
65+
66+
- name: Publish Playwright Test Summary
67+
uses: daun/playwright-report-summary@v3
68+
if: always()
69+
with:
70+
report-file: client/results.json
71+
comment-title: "🎭 Playwright E2E Test Results"
72+
job-summary: true
73+
icon-style: "emojis"
74+
custom-info: |
75+
**Test Environment:** Ubuntu Latest, Node.js 18
76+
**Browsers:** Chromium, Firefox
77+
78+
📊 [View Detailed HTML Report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) (download artifacts)
79+
test-command: "npm run test:e2e"

client/playwright.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ export default defineConfig({
1414
/* Opt out of parallel tests on CI. */
1515
workers: process.env.CI ? 1 : undefined,
1616
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
17-
reporter: [["html", { outputFolder: "playwright-report" }], ["line"]],
17+
reporter: [
18+
["html", { outputFolder: "playwright-report" }],
19+
["json", { outputFile: "results.json" }],
20+
["line"],
21+
],
1822
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
1923
use: {
2024
/* Base URL to use in actions like `await page.goto('/')`. */

0 commit comments

Comments
 (0)