playwright-best-practices

Organize Playwright testing practices across writing, debugging, and CI/CD workflows.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/softmg/hop-and-fill --skill playwright-best-practices-softmg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-best-practices
Source: https://github.com/softmg/hop-and-fill/tree/main/.agents/skills/playwright-best-practices
Command: npx skills add https://github.com/softmg/hop-and-fill --skill playwright-best-practices-softmg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Playwright projects often struggle with inconsistent patterns, flaky tests, and scattered guidance. This Skill consolidates best practices, references, and workflow patterns into an actionable reference to improve reliability and maintainability.

Core Features & Use Cases

  • Activity-based references across writing, debugging, and maintaining Playwright tests.
  • Covers E2E, component, API, visual, accessibility, and CI/CD workflows; includes authentication, mocks, and i18n patterns.
  • Real-world guidance on debugging, flaky tests, CI, and performance optimizations.

Quick Start

Ask for Playwright best practices tailored to your current task to get focused guidance.

Frequently Asked Questions about playwright-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix flaky Playwright tests in my CI pipeline?

Flaky Playwright tests are resolved by applying activity-based debugging and repair patterns. This Skill provides centralized guidance on identifying root causes, stabilizing selectors, and configuring CI workflows to prevent test instability and improve reliability.

What's the best way to structure a Playwright test project?

Playwright test projects are structured using Page Object Model (POM) adoption and consistent testing patterns. This Skill organizes references across eight categories to improve maintainability, covering E2E, component, API, and accessibility testing workflows.

How do I configure Playwright for component and API testing?

Configuring Playwright for component and API testing involves using targeted reference patterns for mocks and i18n. This Skill maps to comprehensive documents that guide writing, debugging, and maintaining these specific test types alongside E2E workflows.

Does this Playwright guidance cover visual and accessibility testing?

Playwright guidance covers visual and accessibility testing alongside security patterns. This Skill consolidates scattered best practices into an actionable reference, enabling task-focused guidance for these specialized testing workflows.

How do I optimize Playwright test performance in CI/CD?

Playwright test performance in CI/CD is optimized using specific workflow patterns and performance configurations. This Skill offers real-world guidance on CI optimization, authentication handling, and annotations tagging to streamline execution.