currents-dev/playwright-best-practices-skillMIT59 files

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.

Specification
Skill ID
currents-dev/playwright-best-practices-skill/playwright-best-practices
Publisher
currents-dev
Repository
playwright-best-practices-skill
Installs
375
Files
59
License
MIT
Synced
Sep 16, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

currents-dev/playwright-best-practices-skill/playwright-best-practicesInstalls these files
  • SKILL.md
  • advanced/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
  • architecture/pom-vs-fixtures.md
  • architecture/test-architecture.md
  • architecture/when-to-mock.md
  • browser-apis/browser-apis.md
  • browser-apis/iframes.md
  • browser-apis/service-workers.md
  • browser-apis/websockets.md
  • core/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
  • debugging/console-errors.md
  • debugging/debugging.md
  • debugging/error-testing.md
  • debugging/flaky-tests.md
  • frameworks/angular.md
  • frameworks/nextjs.md
  • frameworks/react.md
  • frameworks/vue.md
  • infrastructure-ci-cd/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
  • testing-patterns/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/performance-testing.md
  • testing-patterns/security-testing.md
  • testing-patterns/visual-regression.md

What this skill tells the agent

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

ActivityReference Files
Writing E2E teststest-suite-structure.md, locators.md, assertions-waiting.md
Writing component testscomponent-testing.md, test-suite-structure.md
Writing API testsapi-testing.md, test-suite-structure.md
Writing GraphQL testsgraphql-testing.md, api-testing.md
Writing visual regression testsvisual-regression.md, canvas-webgl.md
Structuring test code with POMpage-object-model.md, test-suite-structure.md
Setting up test data/fixturesfixtures-hooks.md, test-data.md
Handling authenticationauthentication.md, authentication-flows.md
Testing date/time featuresclock-mocking.md
Testing file upload/downloadfile-operations.md, file-upload-download.md
Testing forms/validationforms-validation.md
Testing drag and dropdrag-drop.md
Testing accessibilityaccessibility.md
Testing security (XSS, CSRF)security-testing.md
Using test annotationsannotations.md
Using test tagstest-tags.md
Testing iframesiframes.md
Testing canvas/WebGLcanvas-webgl.md
Internationalization (i18n)i18n.md
Testing Electron appselectron.md
Testing browser extensionsbrowser-extensions.md

Mobile & Responsive Testing

When to use: Testing mobile devices, touch interactions, responsive layouts

ActivityReference Files
Device emulationmobile-testing.md
Touch gestures (swipe, tap)mobile-testing.md
Viewport/breakpoint testingmobile-testing.md
Mobile-specific UImobile-testing.md, locators.md

Real-Time & Browser APIs

When to use: Testing WebSockets, geolocation, permissions, multi-tab flows

ActivityReference Files
WebSocket/real-time testingwebsockets.md
Geolocation mockingbrowser-apis.md
Permission handlingbrowser-apis.md
Clipboard testingbrowser-apis.md
Camera/microphone mockingbrowser-apis.md
Multi-tab/popup flowsmulti-context.md
OAuth popup handlingthird-party.md, multi-context.md

Debugging & Troubleshooting

When to use: Test failures, element not found, timeouts, unexpected behavior

ActivityReference Files
Debugging test failuresdebugging.md, assertions-waiting.md
Fixing flaky testsflaky-tests.md, debugging.md, assertions-waiting.md
Debugging flaky parallel runsflaky-tests.md, performance.md, fixtures-hooks.md