What problem does it solve?
This Skill helps you write effective and maintainable component tests for user interfaces, ensuring your application behaves as expected from a user's perspective.
Core Features & Use Cases
- User-Centric Testing: Focuses on testing user interactions and visible outcomes, not internal implementation details.
- Query Priority Guidance: Provides a clear, prioritized list of testing queries (
getByRole, getByLabelText, etc.) for robust selectors.
- Async Handling: Demonstrates patterns for testing asynchronous operations and elements that appear over time.
- Debugging Tools: Includes methods for inspecting the DOM and generating interactive debugging URLs.
- Use Case: When developing a new form component, use this Skill to write tests that verify users can input data, submit the form, and see appropriate success or error messages.
Quick Start
Use the testing-user-interfaces skill to write a test for a login form, ensuring a user can type their email and password and click the submit button.