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>
This commit is contained in:
@@ -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