Skip to content
Back to search

playwright-best-practices-skill

AI Skill for Playwright Best Practices—made by Currents.dev

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/currents-dev--playwright-best-practices-skill/badge.svg)](/listings/currents-dev--playwright-best-practices-skill)

HTML

<a href="/listings/currents-dev--playwright-best-practices-skill"><img src="/api/listings/currents-dev--playwright-best-practices-skill/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

npx skills add https://github.com/currents-dev/playwright-best-practices-skill

The skill is activity-based: the AI is directed to the right reference depending on what you're doing, so you get focused advice without loading everything at once.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 147 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. ```
  2. ░█▀█░█░░░█▀█░█░█░█░█░█▀▄░▀█▀░█▀▀░█░█░▀█▀░░░█▀▄░█▀▀░█▀▀░▀█▀░░░█▀█░█▀▄░█▀█░█▀▀░▀█▀░▀█▀░█▀▀░█▀▀░█▀▀░
  3. ░█▀▀░█░░░█▀█░░█░░█▄█░█▀▄░░█░░█░█░█▀█░░█░░░░█▀▄░█▀▀░▀▀█░░█░░░░█▀▀░█▀▄░█▀█░█░░░░█░░░█░░█░░░█▀▀░▀▀█░
  4. ░▀░░░▀▀▀░▀░▀░░▀░░▀░▀░▀░▀░▀▀▀░▀▀▀░▀░▀░░▀░░░░▀▀░░▀▀▀░▀▀▀░░▀░░░░▀░░░▀░▀░▀░▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░
  5. ```
  6. <img src="assets/currents-logo.png" width="24" height="24" align="left" />by [currents.dev](https://currents.dev?utm_source=ai-skill) - The all-in-one Dashboard for Playwright Testing.
  7. # Playwright Best Practices Skill
  8. A skill that gives the AI specialized guidance for writing, debugging, and maintaining **Playwright** tests in **TypeScript**. Use it in any repo where you work with Playwright so the assistant follows best practices for E2E, component, API, visual regression, accessibility, security, i18n, Electron, and browser extension testing.
  9. ## Installation
  10. ```bash
  11. npx skills add https://github.com/currents-dev/playwright-best-practices-skill
  12. ```
  13. The skill is activity-based: the AI is directed to the right reference depending on what you're doing, so you get focused advice without loading everything at once.
  14. ## When the Skill Is Used
  15. The skill triggers when the AI infers you need help with things like:
  16. - Writing new E2E, component, API, visual regression, or accessibility tests
  17. - Testing mobile/responsive layouts, touch gestures, or device emulation
  18. - Implementing file uploads/downloads, date/time mocking, or WebSocket testing
  19. - Handling OAuth popups, geolocation, permissions, or multi-tab flows
  20. - Testing iframes, canvas/WebGL, service workers, or PWA features
  21. - Testing Electron desktop apps or browser extensions
  22. - Internationalization (i18n), locales, RTL layouts, or date/number formats
  23. - Testing error states, offline mode, or network failure scenarios
  24. - Security testing (XSS, CSRF, authentication, authorization)
  25. - Performance testing with Web Vitals or Lighthouse
  26. - Reviewing or refactoring Playwright test code
  27. - Fixing flaky tests or debugging failures
  28. - Setting up CI/CD, test coverage, or global setup/teardown
  29. - Configuring projects, dependencies, parallel runs, or sharding
  30. You don't have to mention "skill" or "Playwright best practices"; describe your task (e.g. "fix this flaky login test" or "add accessibility tests") and the AI will use the skill when it's relevant.
  31. ## What's Inside
  32. **57 reference documents** organized into 8 categories:
  33. ### Core (`core/`)
  34. | Topic | Reference | Use for |
  35. | -------------------- | --------------------------- | ------------------------------------------------ |
  36. | Test structure | `test-suite-structure.md` | Structure, config, E2E/component/API/visual tests |
  37. | Locators | `locators.md` | Selectors, robustness, avoiding brittle locators |
  38. | Assertions & waiting | `assertions-waiting.md` | Expect APIs, auto-waiting, polling |
  39. | Page Object Model | `page-object-model.md` | POM structure and patterns |
  40. | Fixtures & hooks | `fixtures-hooks.md` | Setup, teardown, auth, custom fixtures |
  41. | Test data | `test-data.md` | Factories, Faker, data-driven testing |
  42. | Annotations | `annotations.md` | skip, fixme, slow, test steps |
  43. | Configuration | `configuration.md` | playwright.config.ts options |
  44. | Global setup | `global-setup.md` | globalSetup/Teardown, DB migrations |
  45. | Projects | `projects-dependencies.md` | Project config, dependencies, filtering |
  46. ### Debugging (`debugging/`)
  47. | Topic | Reference | Use for |
  48. | -------------- | -------------------- | ------------------------------------------ |
  49. | Debugging | `debugging.md` | Trace viewer, inspector, common issues |
  50. | Flaky tests | `flaky-tests.md` | Detection, diagnosis, fixing, quarantine |
  51. | Error testing | `error-testing.md` | Error boundaries, offline, network failures |
  52. | Console errors | `console-errors.md` | Capturing and failing on JS errors |
  53. ### Testing Patterns (`testing-patterns/`)
  54. | Topic | Reference | Use for |
  55. | ------------------- | ------------------------- | ---------------------------------------------- |
  56. | Accessibility | `accessibility.md` | Axe-core, keyboard nav, ARIA, focus management |
  57. | API testing | `api-testing.md` | REST API testing, request context |
  58. | Component testing | `component-testing.md` | CT setup, mounting, props, mocking |
  59. | Visual regression | `visual-regression.md` | Screenshot comparison, thresholds |
  60. | File operations | `file-operations.md` | Upload, download basics |
  61. | File upload/download| `file-upload-download.md` | Progress, cancellation, retry patterns |
  62. | Forms validation | `forms-validation.md` | Form testing, validation states |
  63. | Drag and drop | `drag-drop.md` | Drag-and-drop interactions |
  64. | GraphQL testing | `graphql-testing.md` | GraphQL queries, mutations, mocking |
  65. | Canvas/WebGL | `canvas-webgl.md` | Canvas testing, charts, WebGL, games |
  66. | i18n | `i18n.md` | Locales, RTL, date/number formats |
  67. | Electron | `electron.md` | Desktop apps, IPC, main/renderer process |
  68. | Browser extensions | `browser-extensions.md` | Popup, background, content scripts, APIs |
  69. | Security testing | `security-testing.md` | XSS, CSRF, auth security, authorization |
  70. | Performance testing | `performance-testing.md` | Web Vitals, budgets, Lighthouse |
  71. ### Advanced (`advanced/`)
  72. | Topic | Reference | Use for |
  73. | ---------------- | ----------------------- | ------------------------------------------- |
  74. | Authentication | `authentication.md` | Login flows, session storage, cookies |
  75. | Auth flows | `authentication-flows.md` | MFA, password reset, complex auth |
  76. | Mobile testing | `mobile-testing.md` | Device emulation, touch gestures, viewports |
  77. | Clock mocking | `clock-mocking.md` | Date/time mocking, timezones, timers |
  78. | Multi-context | `multi-context.md` | Popups, new tabs, OAuth flows |
  79. | Multi-user | `multi-user.md` | Collaboration, RBAC, concurrent actions |
  80. | Network advanced | `network-advanced.md` | GraphQL, HAR, request modification |
  81. | Third-party | `third-party.md` | OAuth, payments, email/SMS mocking |
  82. ### Browser APIs (`browser-apis/`)
  83. | Topic | Reference | Use for |
  84. | --------------- | -------------------- | ------------------------------------------- |
  85. | Browser APIs | `browser-apis.md` | Geolocation, permissions, clipboard, camera |
  86. | WebSockets | `websockets.md` | Real-time testing, SSE, reconnection |
  87. | iFrames | `iframes.md` | Cross-origin, nested, dynamic iframes |
  88. | Service workers | `service-workers.md` | PWA, caching, offline, push notifications |
  89. ### Architecture (`architecture/`)
  90. | Topic | Reference | Use for |
  91. | ----------------- | ---------------------- | ------------------------------------ |
  92. | POM vs fixtures | `pom-vs-fixtures.md` | Choosing between patterns |
  93. | Test architecture | `test-architecture.md` | Test type selection, structure |
  94. | When to mock | `when-to-mock.md` | Mock vs real services decisions |
  95. ### Frameworks (`frameworks/`)
  96. | Topic | Reference | Use for |
  97. | ------- | ------------- | ------------------------------ |
  98. | React | `react.md` | React-specific testing patterns |
  99. | Angular | `angular.md` | Angular-specific testing |
  100. | Vue | `vue.md` | Vue/Nuxt testing patterns |
  101. | Next.js | `nextjs.md` | Next.js SSR/SSG testing |
  102. ### Infrastructure & CI/CD (`infrastructure-ci-cd/`)
  103. | Topic | Reference | Use for |
  104. | ---------------- | ---------------------- | ------------------------------------ |
  105. | CI/CD | `ci-cd.md` | Pipelines, general CI setup |
  106. | GitHub Actions | `github-actions.md` | GitHub-specific workflows |
  107. | GitLab CI | `gitlab.md` | GitLab-specific pipelines |
  108. | Other providers | `other-providers.md` | CircleCI, Azure DevOps, Jenkins |
  109. | Docker | `docker.md` | Container setup, Playwright images |
  110. | Parallel/sharding| `parallel-sharding.md` | Sharding, parallel execution |
  111. | Performance | `performance.md` | Parallel runs, optimization |
  112. | Reporting | `reporting.md` | Test reporters, artifacts |
  113. | Test coverage | `test-coverage.md` | V8 coverage, reports, thresholds, CI |
  114. The skill's `SKILL.md` maps your current activity to these references so the right content is used in context.
  115. ## License
  116. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.