ui-testing
UI testing expert for Cypress, Testing Library, and component tests. Use when testing UI components or implementing component tests.
Why use this skill?
Master UI testing with the OpenClaw UI Testing skill. Get expert guidance on Cypress E2E flows, Testing Library component tests, and mocking APIs to ensure your frontend code is robust and accessible.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anton-abyzov/sw-ui-testingWhat This Skill Does
The UI Testing skill is an expert-level utility for OpenClaw users, designed to streamline the creation, debugging, and maintenance of frontend tests. By leveraging Cypress and Testing Library, the skill helps developers write robust, user-centric tests. Whether you are performing end-to-end (E2E) verification for complete user journeys or isolated unit tests for individual components, this skill provides the necessary syntax, best-practice structures, and boilerplate code to ensure your application remains stable throughout the development lifecycle.
Installation
You can integrate this skill into your environment by running the following command in your terminal:
clawhub install openclaw/skills/skills/anton-abyzov/sw-ui-testing
Use Cases
- E2E Automation: Implementing full-page flows like authentication, multi-step forms, or dashboard navigation.
- Component Testing: Verifying individual UI elements (e.g., buttons, input fields, modals) behave correctly in isolation.
- API Mocking: Utilizing the
cy.interceptmethod to simulate backend responses, allowing frontend testing to proceed independently of backend availability. - Accessibility Auditing: Leveraging Testing Library's query selectors to ensure your application is accessible by focusing on ARIA labels and user-centric roles.
Example Prompts
- "Help me write a Cypress test for my login flow that intercepts the POST request to /api/auth and mocks a success response."
- "I am getting an error when testing a custom button component using React Testing Library. Can you look at this snippet and suggest the right query for finding an element by role?"
- "Refactor my existing Cypress test file to use a custom command for user authentication to reduce code duplication across my test suite."
Tips & Limitations
- Best Practice: Always prefer Testing Library's user-centric queries (e.g.,
getByRole) over implementation-heavy selectors (e.g.,querySelectoror CSS class selectors) to make your tests resilient to refactors. - Debugging: If your tests are flaky, use the built-in time-travel debugger in Cypress to inspect the DOM state at specific command points.
- Limit: This skill does not replace the need for an underlying test runner like Jest or the Cypress binary itself; it functions as an agent-based advisor to generate, debug, and optimize your test code. For cross-browser E2E automation that requires multi-tab support, consider evaluating the
e2e-playwrightskill instead.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anton-abyzov-sw-ui-testing": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
network-engineer
Cloud network architect for VPC design, service mesh, zero-trust networking, load balancers, and CDN optimization. Use for network troubleshooting or connectivity issues.
jira-multi-project-mapper
Expert in mapping SpecWeave specs to multiple JIRA projects with intelligent project detection and cross-project coordination. Use when syncing to multiple JIRA projects (project-per-team, component-based), or managing bidirectional sync across team boundaries.
helm-chart-scaffolding
Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.
performance-optimization
React Native performance with Hermes V1, FlashList, expo-image v2, concurrent rendering. Use for slow app, memory leaks, or FPS issues.
release-strategy-advisor
Release strategy advisor - detects brownfield patterns (tags, CI/CD, changelogs), recommends versioning strategy based on architecture. Creates release-strategy.md.