playwright-best-practices

Provide best-practice guidance for Playwright testing across E2E, component, API, visual, accessibility, security, Electron, and browser extension testing.

2|Updated May 5, 2023
One-click install
npx skills add https://github.com/baicie/template-repo --skill playwright-best-practices-baicie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-best-practices
Source: https://github.com/baicie/template-repo/tree/main/electron-app/.agents/skills/playwright-best-practices
Command: npx skills add https://github.com/baicie/template-repo --skill playwright-best-practices-baicie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Playwright testing can be complex and error-prone without a structured playbook; this skill consolidates best practices and references for guided, efficient testing.

Core Features & Use Cases

  • Provides a curated set of references across core patterns, debugging, advanced patterns, and framework-specific guidance for Playwright.
  • Supports activity-based recommendations that adapt to your current task (writing tests, debugging failures, refactoring, or configuring CI/CD).
  • Covers E2E, component, API, visual, accessibility, security, Electron, and browser extension testing with a unifying playbook.

Quick Start

Fix flaky tests by applying Playwright best practices: use Page Object Model, CI/CD integration, and accessibility checks.

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 for fixing flaky Playwright E2E tests?

Fix flaky Playwright E2E tests by applying best practices like the Page Object Model, CI/CD integration, and accessibility checks. This skill provides a structured playbook of curated references to guide efficient test writing, refactoring, and debugging.

How do I configure Playwright component testing in my CI/CD pipeline?

Configure Playwright component testing in CI/CD pipelines using this skill's framework-specific guidance and activity-based recommendations. It adapts to your current configuration task, ensuring context-aware advice for component, API, and visual testing disciplines.

Does the Playwright testing playbook cover accessibility and security testing?

Yes, the Playwright testing playbook covers accessibility and security testing alongside E2E, component, API, and visual testing. It selects relevant references from its internal knowledge base based on your specific testing discipline and user intent.

What is the best way to debug failing Playwright automation tests?

Debug failing Playwright automation tests using this skill's curated debugging references and advanced patterns. It delivers context-aware, discipline-specific advice to help you systematically resolve test failures and refactor complex testing scenarios.

Can I use Playwright best practices for Electron and browser extension testing?

Yes, you can apply Playwright best practices for Electron and browser extension testing. The skill consolidates a unifying playbook across these platforms, providing advanced patterns and framework-specific guidance for your testing activities.