Files
BMAD-METHOD/src/modules/bmm/testarch/knowledge/component-tdd.md
Murat K Ozcan df0c3e4bae Port TEA commands into workflows and preload Murat knowledge (#660)
* Port TEA commands into workflows and preload Murat knowledge

* Broke the giant knowledge dump into curated fragments under src/modules/bmm/testarch/knowledge/

* Broke the giant knowledge dump into curated fragments under src/modules/bmm/testarch/knowledge/

* updated the web bunles for tea, and spot updates for analyst and sm

* Replaced the old TEA brief with an indexed knowledge system: the agent now loads topic-specific
  docs from knowledge/ via tea-index.csv, workflows reference those fragments, and risk/level/
  priority guidance lives in the new fragment files

---------

Co-authored-by: Murat Ozcan <murat@mac.lan>
2025-09-30 15:19:55 -05:00

713 B

Component Test-Driven Development Loop

  • Start every UI change with a failing component spec (cy.mount or RTL render); ship only after red → green → refactor passes.
  • Recreate providers/stores per spec to prevent state bleed and keep parallel runs deterministic.
  • Use factories to exercise prop/state permutations; cover accessibility by asserting against roles, labels, and keyboard flows.
  • Keep component specs under ~100 lines: split by intent (rendering, state transitions, error messaging) to preserve clarity.
  • Pair component tests with visual debugging (Cypress runner, Storybook, Playwright trace viewer) to accelerate diagnosis.

Source: CCTDD repository, Murat component testing talks.