playwright-best-practices
Use when writing Playwright tests, fixing flaky tests, debugging failures, implementing Page Object Model, configuring CI/CD, optimizing performance, mocking…
Skill by currents.dev
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ifernandez89-playwright-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend, backend, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/playwright-best-practices
What's inside
- Skill name
playwright-best-practices- Description
- 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.
- License
- MIT
- Metadata
- author: currents.dev · version: 1.1
- Instructions
- 296 lines in SKILL.md · view on GitHub
Files (63)
- .agnix.toml
- validate-skill.yml · .github/workflows/
- LICENSE.md
- README.md
- SKILL.md
- authentication-flows.md · advanced/
- authentication.md · advanced/
- clock-mocking.md · advanced/
- mobile-testing.md · advanced/
- multi-context.md · advanced/
- multi-user.md · advanced/
- network-advanced.md · advanced/
- third-party.md · advanced/
- pom-vs-fixtures.md · architecture/
- test-architecture.md · architecture/
- when-to-mock.md · architecture/
- browser-apis.md · browser-apis/
- iframes.md · browser-apis/
- service-workers.md · browser-apis/
- websockets.md · browser-apis/
- annotations.md · core/
- assertions-waiting.md · core/
- configuration.md · core/
- fixtures-hooks.md · core/
- global-setup.md · core/
- locators.md · core/
- page-object-model.md · core/
- projects-dependencies.md · core/
- test-data.md · core/
- test-suite-structure.md · core/
- test-tags.md · core/
- console-errors.md · debugging/
- debugging.md · debugging/
- error-testing.md · debugging/
- flaky-tests.md · debugging/
- angular.md · frameworks/
- nextjs.md · frameworks/
- react.md · frameworks/
- vue.md · frameworks/
- ci-cd.md · infrastructure-ci-cd/
- docker.md · infrastructure-ci-cd/
- github-actions.md · infrastructure-ci-cd/
- gitlab.md · infrastructure-ci-cd/
- other-providers.md · infrastructure-ci-cd/
- parallel-sharding.md · infrastructure-ci-cd/
- performance.md · infrastructure-ci-cd/
- reporting.md · infrastructure-ci-cd/
- test-coverage.md · infrastructure-ci-cd/
- accessibility.md · testing-patterns/
- api-testing.md · testing-patterns/
- browser-extensions.md · testing-patterns/
- canvas-webgl.md · testing-patterns/
- component-testing.md · testing-patterns/
- drag-drop.md · testing-patterns/
- electron.md · testing-patterns/
- file-operations.md · testing-patterns/
- file-upload-download.md · testing-patterns/
- forms-validation.md · testing-patterns/
- graphql-testing.md · testing-patterns/
- i18n.md · testing-patterns/
- …and 3 more
SKILL.md (first lines)
# Playwright Best Practices This skill provides comprehensive guidance for all aspects of Playwright test development, from writing new tests to debugging and maintaining existing test suites. ## Activity-Based Reference Guide Consult these references based on what you're doing: ### Writing New Tests **When to use**: Creating new test files, writing test cases, implementing test scenarios | Activity | Reference Files | | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | **Writing E2E tests** | [test-suite-structure.md](core/test-suite-structure.md), [locators.md](core/locators.md), [assertions-waiting.md](core/assertions-waiting.md) | | **Writing component tests** | [component-testing.md](testing-patterns/component-testing.md), [test-suite-structure.md](core/test-suite-structure.md) | | **Writing API tests** | [api-testing.md](testing-patterns/api-testing.md), [test-suite-structure.md](core/test-suite-structure.md) | | **Writing GraphQL tests** | [graphql-testing.md](testing-patterns/graphql-testing.md), [api-testing.md](testing-patterns/api-testing.md) | | **Writing visual regression tests** | [visual-regression.md](testing-patterns/visual-regression.md), [canvas-webgl.md](testing-patterns/canvas-webgl.md) | | **Structuring test code with POM** | [page-object-model.md](core/page-object-model.md), [test-suite-structure.md](core/test-suite-structure.md) | | **Setting up test data/fixtures** | [fixtures-hooks.md](core/fixtures-hooks.md), [test-data.md](core/test-data.md) | | **Handling authentication** | [authentication.md](advanced/authentication.md), [authentication-flows.md](advanced/authentication-flows.md) | | **Testing date/time features** | [clock-mocking.md](advanced/clock-mocking.md) | | **Testing file upload/download** | [file-operations.md](testing-patterns/file-operations.md), [file-upload-download.md](testing-patterns/file-upload-download.md) | | **Testing forms/validation** | [forms-validation.md](testing-patterns/forms-validation.md) | | **Testing drag and drop** | [drag-drop.md](testing-patterns/drag-drop.md) | | **Testing accessibility** | [accessibility.md](testing-patterns/accessibility.md) | | **Testing security (XSS, CSRF)** | [security-testing.md](testing-patterns/security-testing.md) | | **Using test annotations** | [annotations.md](core/annotations.md) | | **Using test tags** | [test-tags.md](core/test-tags.md) | | **Testing iframes** | [iframes.md](browser-apis/iframes.md) | | **Testing canvas/WebGL** | [canvas-webgl.md](testing-patterns/canvas-webgl.md) | | **Internationalization (i18n)** | [i18n.md](testing-patterns/i18n.md) | | **Testing Electron apps** | [electron.md](testing-patterns/electron.md) | | **Testing browser extensions** | [browser-extensions.md](testing-patterns/browser-extensions.md) | ### Mobile & Responsive Testing **When to use**: Testing mobile devices, touch interactions, responsive layouts | Activity | Reference Files | | ------------------------------- | -------------------------------------------------------------------------------- | | **Device emulation** | [mobile-testing.md](advanced/mobile-testing.md) | | **Touch gestures (swipe, tap)** | [mobile-testing.md](advanced/mobile-testing.md) | | **Viewport/breakpoint testing** | [mobile-testing.md](advanced/mobile-testing.md) | | **Mobile-specific UI** | [mobile-testing.md](advanced/mobile-testing.md), [locators.md](core/locators.md) | ### Real-Time & Browser APIs **When to use**: Testing WebSockets, geolocation, permissions, multi-tab flows | Activity | Reference Files | | ------------------------------- | ---------------------------------------------------------------------------------------- | | **WebSocket/real-time testing** | [websockets.md](browser-apis/websockets.md) | | **Geolocation mocking** | [browser-apis.md](browser-apis/browser-apis.md) | | **Permission handling** | [browser-apis.md](browser-apis/browser-apis.md) | | **Clipboard testing** | [browser-apis.md](browser-apis/browser-apis.md) | | **Camera/microphone mocking** | [browser-apis.md](browser-apis/browser-apis.md) | | **Multi-tab/popup flows** | [multi-context.md](advanced/multi-context.md) | | **OAuth popup handling** | [third-party.md](advanced/third-party.md), [multi-context.md](advanced/multi-context.md) | ### Debugging & Troubleshooting **When to use**: Test failures, element not found, timeouts, unexpected behavior | Activity | Reference Files | | ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | **Debugging test failures** | [debugging.md](debugging/debugging.md), [assertions-waiting.md](core/assertions-waiting.md) | | **Fixing flaky tests** | [flaky-tests.md](debugging/flaky-tests.md), [debugging.md](debugging/debugging.md), [assertions-waiting.md](core/assertions-waiting.md) | | **Debugging flaky parallel runs** | [flaky-tests.md](debugging/flaky-tests.md), [performance.md](infrastructure-ci-cd/performance.md), [fixtures-hooks.md](core/fixtures-hooks.md) | | **Ensuring test isolation / avoiding state leak** | [flaky-tests.md](debugging/flaky-tests.md), [fixtures-hooks.md](core/fixtures-hooks.md), [performance.md](infrastructure-ci-cd/performance.md) | | **Fixing selector issues** | [locators.md](core/locators.md), [debugging.md](debugging/debugging.md) | | **Investigating timeout issues** | [assertions-waiting.md](core/assertions-waiting.md), [debugging.md](debugging/debugging.md) | | **Using trace viewer** | [debugging.md](debugging/debugging.md) | | **Debugging race conditions** | [flaky-tests.md](debugging/flaky-tests.md), [debugging.md](debugging/debugging.md), [assertions-waiting.md](core/assertions-waiting.md) | | **Debugging console/JS errors** | [console-errors.md](debugging/console-errors.md), [debugging.md](debugging/debugging.md) | ### Error & Edge Case Testing **When to use**: Testing error states, offline mode, network failures, validation | Activity | Reference Files | | ------------------------------ | ----------------------------------------------------------------------------------------------------- | | **Error boundary testing** | [error-testing.md](debugging/error-testing.md) | | **Network failure simulation** | [error-testing.md](debugging/error-testing.md), [network-advanced.md](advanced/network-advanced.md) | | **Offline mode testing** | [error-testing.md](debugging/error-testing.md), [service-workers.md](browser-apis/service-workers.md) | | **Service worker testing** | [service-workers.md](browser-apis/service-workers.md) | | **Loading state testing** | [error-testing.md](debugging/error-testing.md) | | **Form validation testing** | [error-testing.md](debugging/error-testing.md) | ### Multi-User & Collaboration Testing **When to use**: Testing features involving multiple users, roles, or real-time collaboration | Activity | Reference Files | | ------------------------------ | ------------------------------------------------------------------------------------ | | **Multiple users in one test** | [multi-user.md](advanced/multi-user.md) | | **Real-time collaboration** | [multi-user.md](advanced/multi-user.md), [websockets.md](browser-apis/websockets.md) | | **Role-based access testing** | [multi-user.md](advanced/multi-user.md) | | **Concurrent action testing** | [multi-user.md](advanced/multi-user.md) | ### Architecture Decisions **When to use**: Choosing test patterns, deciding between approaches, planning test architecture | Activity | Reference Files | | ---------------------------- | --------------------------------------------------------- | | **POM vs fixtures decision** | [pom-vs-fixtures.md](architecture/pom-vs-fixtures.md) | | **Test type selection** | [test-architecture.md](architecture/test-architecture.md) | | **Mock vs real services** | [when-to-mock.md](architecture/when-to-mock.md) | | **Test suite structure** | [test-suite-structure.md](core/test-suite-structure.md) | ### Framework-Specific Testing **When to use**: Testing React, Angular, Vue, or Next.js applications | Activity | Reference Files | | ------------------------- | ----------------------------------- | | **Testing React apps** | [react.md](frameworks/react.md) |
From ifernandez89/productos_crud_bkd, MIT.
More from ifernandez89/productos_crud_bkd
- 0.565score
blender-automation
JarBees 3D Studio
Guía experta y patrones de producción para automatización headless de Blender (v5.x/4.x) mediante Python (bpy).
SkillAFreshness: AClaude Code +9 - 0.561score
threejs-graphics
JarBees Graphic Studio
Guía experta y patrones de producción para Three.js r165 en entornos WebGL 2.0 y headless Playwright.
SkillAFreshness: AClaude Code +9 - 0.469score
bun
ifernandez89
Use when building, testing, and deploying JavaScript/TypeScript applications.
SkillCFreshness: CClaude Code +9 - 0.469score
prisma-cli
prisma
Prisma CLI commands reference covering all available commands, options, and usage patterns.
SkillCFreshness: CClaude Code +9 - 0.445score
frontend-design
ifernandez89
Create distinctive, production-grade frontend interfaces with high design quality.
SkillCFreshness: CClaude Code +9 - 0.445score
frontend-design
ifernandez89
Create distinctive, production-grade frontend interfaces with high design quality.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 24, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.1
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from currents.dev
Cite this page
playwright-best-practices skill. Agent Mart. https://agentmart.dev/skills/ifernandez89-playwright-best-practices (last updated 2026-10-24)