playwright-best-practices

Map Playwright activity to curated best-practice references for reliability and maintainability.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/cedriking/zenda --skill playwright-best-practices-cedriking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-best-practices
Source: https://github.com/cedriking/zenda/tree/main/.agents/skills/playwright-best-practices
Command: npx skills add https://github.com/cedriking/zenda --skill playwright-best-practices-cedriking

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing and maintaining Playwright tests can be plagued by flaky runs, brittle locators, and inconsistent configurations. This Skill provides an action-oriented, reference-driven guide to help you write, debug, and maintain robust Playwright tests across E2E, component, API, visual, accessibility, and more.

Core Features & Use Cases

  • Activity-based guidance that maps your current task to the appropriate Playwright references.
  • Access to a comprehensive set of references spanning core patterns, debugging, testing patterns, advanced topics, architecture, frameworks, and CI/CD configuration.
  • Clear decision trees and best-practice patterns to reduce flaky tests, improve reliability, and speed up CI pipelines.

Quick Start

Describe your task and the AI will apply Playwright best practices to guide you.

Frequently Asked Questions about playwright-best-practices

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

FAQPage Schema
What are the best practices to fix flaky Playwright E2E tests?

Playwright E2E test best practices involve using resilient locators, avoiding hardcoded timeouts, and leveraging auto-waiting mechanisms. This Skill maps your current testing activity to curated references that reduce flakiness and improve maintainability across your suite.

How do I debug a failing Playwright test step by step?

Debug a failing Playwright test by utilizing the built-in debugger, Playwright Inspector, and trace viewer. This Skill provides action-oriented guidance and decision trees that map your debugging activity to structured reference patterns for faster troubleshooting.

Does this Playwright guidance cover API and accessibility testing patterns?

Yes, this Playwright guidance covers API and accessibility testing patterns alongside E2E and component testing. It provides a broad catalog of topics, mapping your specific testing activity to appropriate best-practice references across all Playwright-supported domains.

What's the best way to configure Playwright for CI/CD pipelines?

The best way to configure Playwright for CI/CD pipelines involves optimizing test execution, parallelization, and shard management. This Skill applies curated infrastructure references to help you speed up CI pipelines and maintain consistent test configurations.

Why are my Playwright locators brittle and how do I make them robust?

Brittle Playwright locators often stem from relying on CSS or XPath tied to implementation details. This Skill guides you toward robust testing patterns by mapping your selectors to best-practice references that prioritize user-facing attributes and resilient locator strategies.