test-ids-web
CommunityStandardize web test IDs for robust testing.
Authorguicheffer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of creating stable, maintainable, and accessible test selectors in web applications by standardizing the use of data-testid attributes.
Core Features & Use Cases
- Consistent Test Selectors: Enforces the use of
data-testidfor reliable element identification in tests. - Naming Conventions: Provides clear guidelines for descriptive, context-aware, and hierarchical naming.
- Dynamic IDs: Demonstrates patterns for generating unique IDs for dynamic content and lists.
- Use Case: When writing end-to-end tests with Playwright or Cypress, use
data-testidto reliably target UI elements, ensuring tests don't break due to minor CSS or DOM structure changes.
Quick Start
Use the test-ids-web skill to implement data-testid attributes with kebab-case naming for all interactive elements in your web components.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: test-ids-web Download link: https://github.com/guicheffer/devorch-cli/archive/main.zip#test-ids-web 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 223,000+ vetted skills library on demand.