Skip to content
Back to skills

Playwright Best Practices

ASecurity

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), ...

  • 44 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
developmentreactvueangularnextjsdockertestingdebuggingrefactoringgitapi

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add Charles5277/nuxt-supabase-starter --skill playwright-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Playwright Best Practices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Playwright Best Practices
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/charles5277-playwright-best-practices/badge)](https://www.skillsdirectory.com/skills/charles5277-playwright-best-practices)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.2"
---
<!-- ๐Ÿ”’ LOCKED โ€” managed by clade ยท auto-generated by sync-to-cursor; edit source in .claude/ then re-run sync -->

# 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)     |
| **Testing Angular apps**  | [angular.md](frameworks/angular.md) |
| **Testing Vue/Nuxt apps** | [vue.md](frameworks/vue.md)         |
| **Testing Next.js apps**  | [nextjs.md](frameworks/nextjs.md)   |

### Refactoring & Maintenance

**When to use**: Improving existing tests, code review, reducing duplication

| Activity                             | Reference Files                                                                                            |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------- |
| **Refactoring to Page Object Model** | [page-object-model.md](core/page-object-model.md), [test-suite-structure.md](core/test-suite-structure.md) |
| **Improving test organization**      | [test-suite-structure.md](core/test-suite-structure.md), [page-object-model.md](core/page-object-model.md) |
| **Extracting common setup/teardown** | [fixtures-hooks.md](core/fixtures-hooks.md)                                                                |
| **Replacing brittle selectors**      | [locators.md](core/locators.md)                                                                            |
| **Removing explicit waits**          | [assertions-waiting.md](core/assertions-waiting.md)                                                        |
| **Creating test data factories**     | [test-data.md](core/test-data.md)                                                                          |
| **Configuration setup**              | [configuration.md](core/configuration.md)                                                                  |

### Infrastructure & Configuration

**When to use**: Setting up projects, configuring CI/CD, optimizing performance

| Activity                                | Reference Files                                                                                                          |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| **Configuring Playwright project**      | [configuration.md](core/configuration.md), [projects-dependencies.md](core/projects-dependencies.md)                     |
| **Setting up CI/CD pipelines**          | [ci-cd.md](infrastructure-ci-cd/ci-cd.md), [github-actions.md](infrastructure-ci-cd/github-actions.md)                   |
| **GitHub Actions setup**                | [github-actions.md](infrastructure-ci-cd/github-actions.md)                                                              |
| **GitLab CI setup**                     | [gitlab.md](infrastructure-ci-cd/gitlab.md)                                                                              |
| **Other CI providers**                  | [other-providers.md](infrastructure-ci-cd/other-providers.md)                                                            |
| **Docker/container setup**              | [docker.md](infrastructure-ci-cd/docker.md)                                                                              |
| **Global setup & teardown**             | [global-setup.md](core/global-setup.md)                                                                                  |
| **Project dependencies**                | [projects-dependencies.md](core/projects-dependencies.md)                                                                |
| **Optimizing test performance**         | [performance.md](infrastructure-ci-cd/performance.md), [test-suite-structure.md](core/test-suite-structure.md)           |
| **Configuring parallel execution**      | [parallel-sharding.md](infrastructure-ci-cd/parallel-sharding.md), [performance.md](infrastructure-ci-cd/performance.md) |
| **Isolating test data between workers** | [fixtures-hooks.md](core/fixtures-hooks.md), [performance.md](infrastructure-ci-cd/performance.md)                       |
| **Test coverage**                       | [test-coverage.md](infrastructure-ci-cd/test-coverage.md)                                                                |
| **Test reporting/artifacts**            | [reporting.md](infrastructure-ci-cd/reporting.md)                                                                        |

### Advanced Patterns

**When to use**: Complex scenarios, API mocking, network interception

| Activity                             | Reference Files                                                                                              |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| **Mocking API responses**            | [test-suite-structure.md](core/test-suite-structure.md), [network-advanced.md](advanced/network-advanced.md) |
| **Network interception**             | [network-advanced.md](advanced/network-advanced.md), [assertions-waiting.md](core/assertions-waiting.md)     |
| **GraphQL mocking**                  | [network-advanced.md](advanced/network-advanced.md)                                                          |
| **HAR recording/playback**           | [network-advanced.md](advanced/network-advanced.md)                                                          |
| **Custom fixtures**                  | [fixtures-hooks.md](core/fixtures-hooks.md)                                                                  |
| **Advanced waiting strategies**      | [assertions-waiting.md](core/assertions-waiting.md)                                                          |
| **OAuth/SSO mocking**                | [third-party.md](advanced/third-party.md), [multi-context.md](advanced/multi-context.md)                     |
| **Payment gateway mocking**          | [third-party.md](advanced/third-party.md)                                                                    |
| **Email/SMS verification mocking**   | [third-party.md](advanced/third-party.md)                                                                    |
| **Failing on console errors**        | [console-errors.md](debugging/console-errors.md)                                                             |
| **Security testing (XSS, CSRF)**     | [security-testing.md](testing-patterns/security-testing.md)                                                  |
| **Performance budgets & Web Vitals** | [performance-testing.md](testing-patterns/performance-testing.md)                                            |
| **Lighthouse integration**           | [performance-testing.md](testing-patterns/performance-testing.md)                                            |
| **Test annotations (skip, fixme)**   | [annotations.md](core/annotations.md)                                                                        |
| **Test tags (@smoke, @fast)**        | [test-tags.md](core/test-tags.md)                                                                            |
| **Test steps for reporting**         | [annotations.md](core/annotations.md)                                                                        |

## Quick Decision Tree

```
What are you doing?
โ”‚
โ”œโ”€ Writing a new test?
โ”‚  โ”œโ”€ E2E test โ†’ core/test-suite-structure.md, core/locators.md, core/assertions-waiting.md
โ”‚  โ”œโ”€ Component test โ†’ testing-patterns/component-testing.md
โ”‚  โ”œโ”€ API test โ†’ testing-patterns/api-testing.md, core/test-suite-structure.md
โ”‚  โ”œโ”€ GraphQL test โ†’ testing-patterns/graphql-testing.md
โ”‚  โ”œโ”€ Visual regression โ†’ testing-patterns/visual-regression.md
โ”‚  โ”œโ”€ Visual/canvas test โ†’ testing-patterns/canvas-webgl.md, core/test-suite-structure.md
โ”‚  โ”œโ”€ Accessibility test โ†’ testing-patterns/accessibility.md
โ”‚  โ”œโ”€ Mobile/responsive test โ†’ advanced/mobile-testing.md
โ”‚  โ”œโ”€ i18n/locale test โ†’ testing-patterns/i18n.md
โ”‚  โ”œโ”€ Electron app test โ†’ testing-patterns/electron.md
โ”‚  โ”œโ”€ Browser extension test โ†’ testing-patterns/browser-extensions.md
โ”‚  โ”œโ”€ Multi-user test โ†’ advanced/multi-user.md
โ”‚  โ”œโ”€ Form validation test โ†’ testing-patterns/forms-validation.md
โ”‚  โ””โ”€ Drag and drop test โ†’ testing-patterns/drag-drop.md
โ”‚
โ”œโ”€ Testing specific features?
โ”‚  โ”œโ”€ File upload/download โ†’ testing-patterns/file-operations.md, testing-patterns/file-upload-download.md
โ”‚  โ”œโ”€ Date/time dependent โ†’ advanced/clock-mocking.md
โ”‚  โ”œโ”€ WebSocket/real-time โ†’ browser-apis/websockets.md
โ”‚  โ”œโ”€ Geolocation/permissions โ†’ browser-apis/browser-apis.md
โ”‚  โ”œโ”€ OAuth/SSO mocking โ†’ advanced/third-party.md, advanced/multi-context.md
โ”‚  โ”œโ”€ Payments/email/SMS โ†’ advanced/third-party.md
โ”‚  โ”œโ”€ iFrames โ†’ browser-apis/iframes.md
โ”‚  โ”œโ”€ Canvas/WebGL/charts โ†’ testing-patterns/canvas-webgl.md
โ”‚  โ”œโ”€ Service workers/PWA โ†’ browser-apis/service-workers.md
โ”‚  โ”œโ”€ i18n/localization โ†’ testing-patterns/i18n.md
โ”‚  โ”œโ”€ Security (XSS, CSRF) โ†’ testing-patterns/security-testing.md
โ”‚  โ””โ”€ Performance/Web Vitals โ†’ testing-patterns/performance-testing.md
โ”‚
โ”œโ”€ Architecture decisions?
โ”‚  โ”œโ”€ POM vs fixtures โ†’ architecture/pom-vs-fixtures.md
โ”‚  โ”œโ”€ Test type selection โ†’ architecture/test-architecture.md
โ”‚  โ”œโ”€ Mock vs real services โ†’ architecture/when-to-mock.md
โ”‚  โ””โ”€ Test suite structure โ†’ core/test-suite-structure.md
โ”‚
โ”œโ”€ Framework-specific testing?
โ”‚  โ”œโ”€ React app โ†’ frameworks/react.md
โ”‚  โ”œโ”€ Angular app โ†’ frameworks/angular.md
โ”‚  โ”œโ”€ Vue/Nuxt app โ†’ frameworks/vue.md
โ”‚  โ””โ”€ Next.js app โ†’ frameworks/nextjs.md
โ”‚
โ”œโ”€ Authentication testing?
โ”‚  โ”œโ”€ Basic auth patterns โ†’ advanced/authentication.md
โ”‚  โ””โ”€ Complex flows (MFA, reset) โ†’ advanced/authentication-flows.md
โ”‚
โ”œโ”€ Test is failing/flaky?
โ”‚  โ”œโ”€ Flaky test investigation โ†’ debugging/flaky-tests.md
โ”‚  โ”œโ”€ Element not found โ†’ core/locators.md, debugging/debugging.md
โ”‚  โ”œโ”€ Timeout issues โ†’ core/assertions-waiting.md, debugging/debugging.md
โ”‚  โ”œโ”€ Race conditions โ†’ debugging/flaky-tests.md, debugging/debugging.md
โ”‚  โ”œโ”€ Flaky only with multiple workers โ†’ debugging/flaky-tests.md, infrastructure-ci-cd/performance.md
โ”‚  โ”œโ”€ State leak / isolation โ†’ debugging/flaky-tests.md, core/fixtures-hooks.md
โ”‚  โ”œโ”€ Console/JS errors โ†’ debugging/console-errors.md, debugging/debugging.md
โ”‚  โ””โ”€ General debugging โ†’ debugging/debugging.md
โ”‚
โ”œโ”€ Testing error scenarios?
โ”‚  โ”œโ”€ Network failures โ†’ debugging/error-testing.md, advanced/network-advanced.md
โ”‚  โ”œโ”€ Offline (unexpected) โ†’ debugging/error-testing.md
โ”‚  โ”œโ”€ Offline-first/PWA โ†’ browser-apis/service-workers.md
โ”‚  โ”œโ”€ Error boundaries โ†’ debugging/error-testing.md
โ”‚  โ””โ”€ Form validation โ†’ testing-patterns/forms-validation.md, debugging/error-testing.md
โ”‚
โ”œโ”€ Refactoring existing code?
โ”‚  โ”œโ”€ Implementing POM โ†’ core/page-object-model.md
โ”‚  โ”œโ”€ Improving selectors โ†’ core/locators.md
โ”‚  โ”œโ”€ Extracting fixtures โ†’ core/fixtures-hooks.md
โ”‚  โ”œโ”€ Creating data factories โ†’ core/test-data.md
โ”‚  โ””โ”€ Configuration setup โ†’ core/configuration.md
โ”‚
โ”œโ”€ Setting up infrastructure?
โ”‚  โ”œโ”€ CI/CD โ†’ infrastructure-ci-cd/ci-cd.md
โ”‚  โ”œโ”€ GitHub Actions โ†’ infrastructure-ci-cd/github-actions.md
โ”‚  โ”œโ”€ GitLab CI โ†’ infrastructure-ci-cd/gitlab.md
โ”‚  โ”œโ”€ Other CI providers โ†’ infrastructure-ci-cd/other-providers.md
โ”‚  โ”œโ”€ Docker/containers โ†’ infrastructure-ci-cd/docker.md
โ”‚  โ”œโ”€ Sharding/parallel โ†’ infrastructure-ci-cd/parallel-sharding.md
โ”‚  โ”œโ”€ Reporting/artifacts โ†’ infrastructure-ci-cd/reporting.md
โ”‚  โ”œโ”€ Global setup/teardown โ†’ core/global-setup.md
โ”‚  โ”œโ”€ Project dependencies โ†’ core/projects-dependencies.md
โ”‚  โ”œโ”€ Test performance โ†’ infrastructure-ci-cd/performance.md
โ”‚  โ”œโ”€ Test coverage โ†’ infrastructure-ci-cd/test-coverage.md
โ”‚  โ””โ”€ Project config โ†’ core/configuration.md, core/projects-dependencies.md
โ”‚
โ”œโ”€ Organizing tests?
โ”‚  โ”œโ”€ Skip/fixme/slow tests โ†’ core/annotations.md
โ”‚  โ”œโ”€ Test tags (@smoke, @fast) โ†’ core/test-tags.md
โ”‚  โ”œโ”€ Filtering tests (--grep) โ†’ core/test-tags.md
โ”‚  โ”œโ”€ Test steps โ†’ core/annotations.md
โ”‚  โ””โ”€ Conditional execution โ†’ core/annotations.md
โ”‚
โ””โ”€ Running subset of tests?
   โ”œโ”€ By tag (@smoke, @critical) โ†’ core/test-tags.md
   โ”œโ”€ Exclude slow/flaky tests โ†’ core/test-tags.md
   โ”œโ”€ PR vs nightly tests โ†’ core/test-tags.md, infrastructure-ci-cd/ci-cd.md
   โ””โ”€ Project-specific filtering โ†’ core/test-tags.md, core/configuration.md
```

## Test Validation Loop

After writing or modifying tests:

1. **Run tests**: `npx playwright test --reporter=list`
2. **If tests fail**:
   - Review error output and trace (`npx playwright show-trace`)
   - Fix locators, waits, or assertions
   - Re-run tests
3. **Only proceed when all tests pass**
4. **Run multiple times** for critical tests: `npx playwright test --repeat-each=5`

Files in this skill

  • SKILL.md25.8 KB
  • advanced/authentication-flows.md10.7 KB
  • advanced/authentication.md30.3 KB
  • advanced/clock-mocking.md9.8 KB
  • advanced/mobile-testing.md10.9 KB
  • advanced/multi-context.md8.5 KB
  • advanced/multi-user.md11.3 KB
  • advanced/network-advanced.md11 KB
  • advanced/third-party.md12 KB
  • architecture/pom-vs-fixtures.md11.1 KB
  • architecture/test-architecture.md14.6 KB
  • architecture/when-to-mock.md11.2 KB
  • browser-apis/browser-apis.md10.6 KB
  • browser-apis/iframes.md11.5 KB
  • browser-apis/service-workers.md13.6 KB
  • browser-apis/websockets.md10.5 KB
  • core/annotations.md10.7 KB
  • core/assertions-waiting.md9.4 KB
  • core/configuration.md12.4 KB
  • core/fixtures-hooks.md11.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading commentsโ€ฆ

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.