fix(e2e): block service workers to prevent route mock bypass #68

Merged
ghost merged 1 commits from fix/e2e-block-service-worker-v2 into main 2026-03-19 13:57:47 +00:00

1 Commits

Author SHA1 Message Date
Groom Book CTO 75cbc2364a fix(e2e): block service workers to prevent route mock bypass
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: Paperclip <noreply@paperclip.ing>
2026-03-19 13:51:02 +00:00