playwright-selectors
CommunityReliable E2E selectors for Expo
AuthorCodySwannGT
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of creating robust and maintainable end-to-end (E2E) tests for Expo web applications by establishing best practices for using testID and aria-label selectors with Playwright.
Core Features & Use Cases
- Selector Prioritization: Guides users on the optimal order of selector strategies (
getByRole,getByText,getByLabel,getByTestId). testIDNaming Convention: Enforces a clear, namespaced pattern (screen:element) for consistenttestIDusage.- Accessibility Integration: Emphasizes using
aria-labelandaccessibilityRolefor improved accessibility and testability. - Use Case: When developing a new feature, use this skill to ensure all interactive elements have appropriate selectors, making E2E tests less brittle and improving overall application quality.
Quick Start
Use the playwright-selectors skill to add a testID to the login button on the authentication screen following the recommended naming convention.
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: playwright-selectors Download link: https://github.com/CodySwannGT/lisa/archive/main.zip#playwright-selectors 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.