# Frontend State Matrix Use only the states relevant to the task. The purpose is to prevent "happy path only" QA, not to force exhaustive application-wide testing. | Area | Candidate states | |---|---| | Route/page | initial load, deep link, refresh, back/forward, not-found | | Data | loading, empty, populated, long content, stale/missing record | | Form | pristine, focused, invalid client input, server validation error, submitting, success, duplicate submit | | Auth | unauthenticated, authenticated permitted, authenticated forbidden, expired auth if relevant | | Request | pending, success, expected 4xx, unexpected 5xx/network failure | | Interactive UI | closed/open, selected/unselected, disabled/enabled, expanded/collapsed | | Destructive action | confirmation open, cancel, confirm, failure, success | | Responsive | broad desktop, breakpoint/intermediate, narrow/mobile | | Theme | supported light/dark/system variants when the task touches themed UI | For every state actually tested, note the viewport and the concrete expected/observed result.