Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci-admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ jobs:
name: E2E
runs-on: ubuntu-latest
needs: [lint-go, lint-ui, test-go, test-ui]
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -162,6 +165,13 @@ jobs:
path: admin/ui/e2e/playwright-report/
retention-days: 14

- name: Post test summary to PR
# Skipped on forked PRs (read-only token) and on push events.
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
uses: daun/playwright-report-summary@1229105480a2a4bdd91598d8a146fbab41343fce # v3.11.0
with:
report-file: admin/ui/e2e/results.json

build:
name: Build
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ admin/seed-user
# Admin E2E tests
admin/ui/e2e/.auth/
admin/ui/e2e/results/
admin/ui/e2e/results.json
admin/ui/e2e/playwright-report/

# Playwright MCP output
Expand Down
5 changes: 5 additions & 0 deletions admin/ui/e2e/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export default defineConfig({
screenshot: 'only-on-failure',
testIdAttribute: 'data-testid',
},
reporter: [
['list'],
['html', { outputFolder: 'playwright-report', open: 'never' }],
['json', { outputFile: 'results.json' }],
],
projects: [
// --- Chromium (primary): full suite ---
{
Expand Down
Loading