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>
This commit was merged in pull request #68.
This commit is contained in:
committed by
GitHub
parent
12ad7c66a0
commit
b6b4bc21a0
@@ -22,6 +22,7 @@ export default defineConfig({
|
||||
baseURL: "http://localhost:8080",
|
||||
trace: "on-first-retry",
|
||||
screenshot: "only-on-failure",
|
||||
serviceWorkers: "block",
|
||||
},
|
||||
|
||||
projects: [
|
||||
|
||||
Reference in New Issue
Block a user