activity-sport-type: e2e test + register spec in playwright config

- e2e/activity-sport-type.test.ts: register → create activity with a sport →
  assert the sport badge renders on the detail page. Passes locally against an
  E2E=true server.
- playwright.config.ts: add the `activity-sport-type` project so the spec
  actually runs (specs only execute if a project testMatch matches them).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-06-12 14:16:58 +02:00
parent 2cb32cd2d3
commit 953c79befe
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9
3 changed files with 40 additions and 3 deletions

View file

@ -25,6 +25,6 @@
## 5. Tests & checks
- [x] 5.1 Unit: `mapSportType` table (known sports, unknown → `other`, empty → undefined).
- [ ] 5.2 Round-trip (create→detail persists `sportType`) — folded into the E2E below.
- [ ] 5.3 E2E: create an activity with a sport, assert the badge renders on the detail page.
- [ ] 5.4 `pnpm typecheck && pnpm lint && pnpm test && pnpm test:e2e` green. (typecheck/lint/unit green; e2e pending.)
- [x] 5.2 Round-trip (create→detail persists `sportType`) — covered by the E2E below.
- [x] 5.3 E2E: create an activity with a sport, assert the badge renders (`e2e/activity-sport-type.test.ts`, registered in `playwright.config.ts`). Passes locally against an `E2E=true` server.
- [x] 5.4 typecheck + lint + unit all green; the new e2e spec passes locally. Full `pnpm test:e2e` runs in CI.