Phase 5: Test
Validate the prototype against WCAG and the component contract.
Purpose
The test phase validates the completed prototype against the component contract and WCAG accessibility criteria, producing a pass/fail report.
Usage
/design:test <component-name>Prerequisites
All prior phase artifacts should exist in .metapowers/design/<component-name>/.
What It Does
- Reads the component contract and prototype notes
- Checks each contract requirement against the prototype
- Runs
figma_a11y_lintto detect accessibility issues in the Figma component - Generates a scorecard with
figma_a11y_scorecardfor overall a11y health - Validates contrast ratios with
figma_a11y_contrast_check - Simulates color-blind views with
figma_a11y_color_blind_sim - Checks focus order with
figma_a11y_focus_order - Generates a test report with pass/fail for each criterion
- Writes to
.metapowers/design/<component-name>/test-report.md
Output
Creates .metapowers/design/<component-name>/test-report.md containing:
- Contract compliance checklist (pass/fail per requirement)
- WCAG validation results
- Issues found and remediation suggestions
- Overall pass/fail status
MCP Tools Used
figma_a11y_lint— Lint the Figma component for accessibility violationsfigma_a11y_scorecard— Generate an overall accessibility scorecardfigma_a11y_contrast_check— Check color contrast ratios against WCAG thresholdsfigma_a11y_color_blind_sim— Simulate color-blind views of the componentfigma_a11y_focus_order— Validate keyboard focus order annotations
After Testing
If the test report identifies issues, iterate by returning to the relevant phase (often prototype or define) to address them. The artifact flow is designed for iteration — update the artifact and re-run downstream phases.