Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
dtyq avatar

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-testid

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs36
repo stars5k
Last updatedAugust 4, 2026
Repositorydtyq/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

Related skills

Testing & QAtestingfrontend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.