Playwright Best Practices
Use when writing Playwright tests, fixing flaky tests, debugging failures, implementing Page Object Model, configuring CI/CD, optimizing performance, mocking APIs, handling authentication or OAuth, testing accessibility (axe-core), file uploads/downloads, date/time mocking, WebSockets, geolocation, permissions, multi-tab/popup flows, mobile/responsive layouts, touch gestures, GraphQL, error handling, offline mode, multi-user collaboration, third-party services (payments, email verification), console error monitoring, global setup/teardown, test annotations (skip, fixme, slow), test tags (@smoke, @fast, @critical, filtering with --grep), project dependencies, security testing (XSS, CSRF, auth), performance budgets (Web Vitals, Lighthouse), iframes, component testing, canvas/WebGL, service workers/PWA, test coverage, i18n/localization, Electron apps, or browser extension testing. Covers E2E, component, API, visual, accessibility, security, Electron, and extension testing.
- Type
- Skill
- Author
- currents-dev
- Category
- Testing
- GitHub stars
- 411
- Installs
- 98.8K
- Last updated
- July 21, 2026
Install
npx skills add https://github.com/currents-dev/playwright-best-practices-skill --skill playwright-best-practicesUse cases
- Debug and de-flake a failing Playwright test suite.
- Set up Page Object Model structure and CI configuration for browser tests.
- Add accessibility, API, or visual checks to an existing Playwright setup.
Frequently Asked Questions
What kinds of testing does this skill cover?
E2E, component, API, visual, accessibility, security, Electron, and browser extension testing.
Can it help with flaky tests?
Yes. Fixing flaky tests and debugging failures are listed among its uses.
Does it cover authentication flows?
Yes, handling authentication and OAuth is included, along with API mocking and global setup and teardown.
About this skill
This skill provides AI-powered guidance on Playwright best practices. It's made by Currents.dev and helps ensure high-quality testing. It could be used to automatically review Playwright tests and suggest improvements.
Summary written with AI assistance from the project's public description.
Categories
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh