
Ui Data Testid
- 36 installs
- 5k repo stars
- Updated August 4, 2026
- dtyq/magic
Add stable data-testid attributes by default to new or refactored UI components so unit and E2E tests get reliable selectors.
About
ui-data-testid enforces adding stable data-testid attributes by default whenever new or refactored UI components are built. It targets React/TSX views, shadcn/antd-style components, dropdown and menu configs and interactive flows so tests get reliable selectors that survive refactors. A solo builder relies on it to keep unit and E2E tests from breaking on brittle CSS or text selectors.
- Add stable data-testid attributes by default
- Reliable selectors for unit and E2E tests
- Covers React/TSX, shadcn/antd, menus and flows
Ui Data Testid by the numbers
- 36 all-time installs (skills.sh)
- Ranked #1,308 of 2,153 Testing & QA skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/dtyq/magic --skill ui-data-testidAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 36 |
|---|---|
| repo stars | ★ 5k |
| Last updated | August 4, 2026 |
| Repository | dtyq/magic ↗ |
What it does
Add stable data-testid attributes by default to new or refactored UI components so unit and E2E tests get reliable selectors.
Who is it for?
Reliable test selectors on new/refactored UI
Skip if: Writing the tests themselves