service-worker-lifecycle-tests - Generate Playwright tests for service worker lifecycle transitions
Generate a Playwright spec for Service Worker state transitions, lifecycle events, upgrade paths, and controller changes.
Tags
Updated: 2026-10-01Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Generate transition test cases
- Test install and activate waits
- Test skipWaiting upgrade behavior
- Test Clients.claim controller changes
- Test redundant state transitions
- Assert controller state changes
Inputs
- Service Worker source file
- Registration URL
- Test page URL
- Lifecycle method usage
- Slow-install Service Worker fixture
Outputs
- Playwright spec file
- Lifecycle test results
- Service Worker state observations
Requirements
- Playwright test environment
- Service Worker-enabled browser
- Test server serving fixtures
- HTTPS or localhost origin
