Write reliable end-to-end tests with Playwright: page object models, waiting strategies, visual regression, network interception, and cross-browser testing.
When to use this skill
- Writing end-to-end tests
- Setting up Playwright in a project
- Debugging a flaky E2E test
Core concepts
This skill provides guidance on playwright e2e best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.
Installation
curl -LO https://opencode-skills.example/downloads/testing/playwright-e2e.zip
unzip playwright-e2e.zip -d ~/.config/opencode/skills/
Restart OpenCode — the skill loads automatically.
When it triggers
- writing end-to-end tests
- setting up Playwright in a project
- debugging a flaky E2E test