- Demo is deployed and accessible
- Agent backend is healthy (check /api/health)
ANTHROPIC_API_KEYis set on the deployment
- Navigate to
/demos/auth - Verify the auth banner renders with
data-authenticated="true" - Verify the status reads "✓ Signed in as demo user"
- Verify the "Sign out" button is visible
- Send "Hello" and verify Claude responds
- Click "Sign out"
- Verify the banner flips to amber with
data-authenticated="false" - Verify the button now reads "Sign in"
- Attempt to send a message
- Verify the error banner (
data-testid="auth-demo-error") renders with "401 Unauthorized" text - Verify no white-screen and no uncaught React errors (the
ChatErrorBoundary catches any render-time crash from chat
internals in the unauth state and renders
data-testid="auth-demo-chat-boundary")
- Click "Sign in"
- Verify the banner flips back to green
- Verify the error banner clears
- Send a message and verify Claude replies again
- No console errors during normal usage.
- Runtime rejects un-bearer'd requests with HTTP 401.
- Page never white-screens, even during auth transitions.