e2e-playwright
Playwright end-to-end testing expert. Use when writing E2E tests, browser automation, or debugging flaky tests.
Why use this skill?
Master your end-to-end testing workflow with the e2e-playwright skill. Effortlessly automate browser testing, debug flaky scripts, and implement the Page Object Model.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anton-abyzov/sw-e2e-playwrightWhat This Skill Does
The e2e-playwright skill provides OpenClaw with specialized capabilities for end-to-end testing, browser automation, and web interface verification. It leverages the Playwright framework to enable robust, reliable, and fast automated testing across multiple browser engines including Chromium, Firefox, and WebKit. This skill excels at creating maintainable test suites using the Page Object Model (POM), managing complex authentication states, and handling modern web application features like dynamic content, shadow DOMs, and asynchronous network requests.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/anton-abyzov/sw-e2e-playwright
Use Cases
- Automated Regression Testing: Ensuring critical user flows (like sign-up or checkout) remain functional after code deployments.
- Browser Compatibility Testing: Validating your web application layout and functionality consistently across different browser rendering engines.
- Debugging Flaky Tests: Utilizing Playwright's trace viewer and auto-waiting mechanisms to identify and resolve intermittent test failures.
- API Mocking & Network Interception: Simulating complex backend responses to test frontend edge cases without requiring a live backend environment.
- Data Scraping & Form Automation: Automating repetitive data entry tasks or extracting information from complex web pages that require JavaScript execution.
Example Prompts
- "Create a Playwright test file using the Page Object Model that checks if the dashboard profile settings update correctly when I save a new name."
- "Help me debug this flaky test; it keeps failing on the login screen specifically in WebKit, even though it passes on Chromium."
- "Write a custom Playwright fixture that logs in as an admin user and sets a specific local storage key before running the test suite."
Tips & Limitations
- Adopt POM: Always structure your tests using the Page Object Model to minimize maintenance when UI selectors change.
- Prefer Locators: Use
getByRoleorgetByLabelinstead of CSS selectors to make tests more resilient to design changes. - Avoid Hard Waits: Never use
page.waitForTimeout(). Rely on Playwright's built-in auto-waiting for actions likeclick()orfill(). - Environment Variables: Ensure sensitive data like credentials are handled via environment variables rather than hard-coded in your test scripts.
- Resource Intensity: Note that running extensive E2E suites can be resource-intensive; utilize parallelization settings in
playwright.config.tsfor larger projects.
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-e2e-playwright": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, 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.