Stress Test

Stress-test a shippable React component (packages/life/src), its HTML catalog specimen, a screen, or a flow prototype. Use for edge-case content, narrow viewports, and keyboard navigation.

Production-ready: PRODUCTION_READY.md · Index. This skill closes accessibility checklist items: APG keyboard-complete, accessible names, axe clean, WCAG AA both themes, forced-colors, RTL, 200% zoom, target ≥24px, plus state coverage that supports light + dark. CI axe: packages/life/src/<Name>/<Name>.production-ready.test.tsx (vitest-axe). Pair with component-cycle Stress and accessibility stage.

Set up the preview

Use AGENTS.md and Life DESIGN.md as the baseline. Light is the default theme; always include dark ([data-theme="dark"]) when the surface supports themes. Identify the route, packages/life/src component, HTML specimen (preview.html), or flow prototype and the actions that must remain usable. Check authored states in the specimen and in React when both exist. Use local preview and fixture data through normal inputs; keep temporary fixtures out of shipped UI. Confirm focus rings stay neutral greyscale, not accent-coloured.

Exercise realistic edge cases

  • Try long wrapping labels, unbroken identifiers, large counts, and optional fields with missing values where those inputs are supported.
  • Exercise the states the surface exposes, including empty results, loading, errors with recovery, and scrollable content. Follow primary and return paths in a flow.
  • Check the default and narrow layouts. Look for clipping, overlap, horizontal overflow, and controls displaced by growing content. Check Light and Dark where the surface supports both, including that hairline surfaces, trays and grey selected rows stay distinguishable without shadows in each theme (visual-direction surface roles).
  • Use the keyboard to reach and operate controls. For an overlay, check initial focus, dismissal, and where focus returns. Capture results in the component docs Accessibility and Keyboard & focus sections (COMPONENT_DOCS.md).

State checklist. List every state first and mark each one designed or n/a with a reason, so none is skipped silently: default, hover, focus, disabled, loading, invalid, empty, long content, Light, Dark. Do not invent states the component cannot be in. Check the hardest state first (the longest label, the error, the largest count), since it breaks a layout before the happy path does.

Worst-case data. For each value the component renders, find its real limit (validation, type, API contract). If none exists, use the longest case. Then try: exactly at the limit and one past it; a long unbroken string; a one-character value; a missing or null optional field; zero, one and 1,000 items; emoji and non-Latin text; extreme numbers and dates. Render at the width the component ships in, not the width of the specimen. Pass these through props or the component's normal inputs, never by editing the DOM.

For role-based views, compare the editor and the read-only view side by side: row heights, control positions and spacing must match, with locks standing in for editable controls and nothing muted.

For overlays and pickers, also check: a long list scrolls with the scrollbar on the container edge and clips nothing; a locked or read-only trigger stays legible; the first and last rows follow the container corners with straight dividers; menu separators are lines, not gaps.

Prioritize cases that affect reading, navigation, or completing an action. Check the rendered result against the component's expected behavior.

Production-ready gate

Before sign-off, map findings to PRODUCTION_READY.md accessibility rows. List pass / fail / n/a with evidence. Unverified items block claiming production-ready.

Report what breaks

List findings as file:line - what is wrong, with the fixture or steps, viewport and theme when relevant, expected behavior, and observed impact. Group duplicate symptoms by cause. Then give a Rule | Count | Severity table and end with Block if any high-severity finding remains, otherwise Approve. Mark any state or case you could not verify as Not verified, including cases inspected only in code that require a live preview. Include a screenshot only when one is already available. Apply fixes if the user asks for them (inside component-cycle, fix the findings) and re-check the affected cases.