You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: Add cache-busting to ensure fresh WASM loads between tests
Each Playwright test now navigates to a unique URL with a timestamp
query parameter to bust browser/WASM caching. This ensures:
1. Each test gets a fresh page load
2. WASM module is reloaded (not cached from previous test)
3. Event handlers are freshly attached
4. Component state starts clean
Without cache busting, tests were using cached WASM from the first test,
causing event handlers to persist and state to carry over between tests.
Changes:
- Added getTestUrl() helper that appends ?t=<timestamp>
- Replaced all page.goto('http://localhost:8080') with page.goto(getTestUrl())
- Added beforeEach hook to clear cookies between tests
This ensures tests are isolated and the app reloads properly between
test cases, which is critical for testing state changes like the
auto-rotate toggle.
0 commit comments