Fixture: cookieless & mode switching
Cookieless vs non-cookieless modes
Drives the three PostHog persistence behaviors and the transitions between them, so the debugger's mode detection, sentinel-ID labeling, and "mode switched" handling can be verified. See ENG-16.
Active mode
- Modecookied (localStorage+cookie)
- distinct_id—
- $device_id—
- Cookies—
Set mode (installs matching window.posthog snapshot)
Capture in the active mode
Switch between modes (transition events)
Each switch emits one transition the panel should render as a single labeled "mode switched" / "identity changed" row — not a duplicate or conflicting-identity anomaly.
Expected debugger signals
- Flags & Sessionmode reflects the active snapshot; sentinel ID labeled, not shown as a user
- Events tabcookieless captures decode without missing-ID / no-persistence warnings
- Transitionone "mode switched" row per switch, carrying $anon_distinct_id → distinct_id
- Validationno false warnings for expected cookieless traits