Commit Graph

3 Commits

Author SHA1 Message Date
Chris Farhood fe014b8fc1 fix(ci): E2E DinD networking + registry token auth
CI / Lint & Typecheck (pull_request) Successful in 24s
CI / Test (pull_request) Successful in 26s
CI / Build (pull_request) Successful in 24s
CI / E2E Tests (pull_request) Successful in 1m41s
CI / Build & Push Docker Images (pull_request) Failing after 11s
CI / Update Infra Image Tags (pull_request) Has been skipped
CI / Web E2E (Dev) (pull_request) Has been cancelled
CI / Deploy PR to groombook-dev (pull_request) Has been cancelled
- playwright.config.ts: make baseURL configurable via PLAYWRIGHT_BASE_URL env var
- ci.yml: set PLAYWRIGHT_BASE_URL=http://host.docker.internal:8080 in e2e job step

Note: gitea.token registry auth not applicable — this repo uses GitHub Actions
with ghcr.io and secrets.GITHUB_TOKEN (already correct).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-20 04:25:20 +00:00
groombook-paperclip[bot] b6b4bc21a0 fix(e2e): block service workers to prevent route mock bypass (#68)
The PWA service worker (VitePWA workbox runtimeCaching) intercepts
/api/* requests, which prevents Playwright's page.route() mocks from
working. This caused the booking flow E2E test to fail because the
availability request was handled by the service worker instead of the
test mock, resulting in real (empty) API responses.

Fixes #65

Co-authored-by: Groom Book CTO <cto@groombook.dev>
Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-03-19 13:57:47 +00:00
groombook-cto[bot] a045749673 Add Playwright E2E testing infrastructure
- New apps/e2e workspace with @playwright/test
- playwright.config.ts targeting Docker Compose stack (http://localhost:8080)
- navigation.spec.ts: smoke tests for all pages
- book.spec.ts: full booking wizard happy-path with API mocking
- clients.spec.ts: client list and detail panel tests
- CI job: spins up docker compose, installs Playwright chromium, runs tests
- Playwright report uploaded as artifact on failure
- README docs for running E2E tests locally

Closes #40

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 02:41:24 +00:00