ui-data-testid
OfficialEnsure stable data-testid attributes for UI tests.
Authordtyq
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Data-testid attributes are often broken or dropped during UI refactors, translations, or design updates, causing fragile tests and flaky automation.
Core Features & Use Cases
- Add and enforce stable data-testid attributes on root containers and primary interactive nodes (buttons, inputs, menus, modals) across UI components.
- Forward and preserve data-testid values through config-driven renderers and wrappers to maintain testability in refactors.
- Support in-code naming conventions (lowercase, kebab-case, semantic suffixes) to ensure consistent test selectors across projects.
Quick Start
Add or preserve stable data-testid attributes for a new or refactored UI component to enable reliable tests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ui-data-testid Download link: https://github.com/dtyq/magic/archive/main.zip#ui-data-testid Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.