fix(e2e): block service workers to prevent route mock bypass #68
Reference in New Issue
Block a user
Delete Branch "fix/e2e-block-service-worker-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
book.spec.ts:62) where time slot buttons were not foundruntimeCachingregisters a service worker that intercepts/api/*requests with aNetworkFirststrategy. Playwright'spage.route()does not intercept requests handled by service workers, so the availability mock was bypassed and the real (empty) API response was used insteadserviceWorkers: 'block'to the Playwright config, which prevents the SW from activating during E2E testsReplaces #66 (which had merge conflicts).
Fixes #65
Test plan
🤖 Generated with Claude Code