fix

Diagnose and resolve intermittent Playwright test failures with execution traces.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Fantasia1999/claude-skills-zh --skill fix-fantasia1999
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix
Source: https://github.com/Fantasia1999/claude-skills-zh/tree/main/translations/engineering-team/playwright-pro/skills/fix
Command: npx skills add https://github.com/Fantasia1999/claude-skills-zh --skill fix-fantasia1999

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you diagnose and fix Playwright tests that are failing or exhibiting unstable behavior, ensuring reliable test execution.

Core Features & Use Cases

  • Failure Reproduction: Runs tests with specific configurations to replicate failures.
  • Trace Analysis: Captures detailed execution traces for in-depth debugging.
  • Categorization: Classifies test failures into distinct types (timing, isolation, environment, infrastructure).
  • Targeted Fixes: Provides specific remediation strategies based on the failure category.
  • Verification: Confirms fixes by running tests multiple times to ensure stability.
  • Use Case: When your CI pipeline reports a flaky test that passes locally, this Skill can help pinpoint the cause and suggest a solution.

Quick Start

Use the fix skill to debug the failing test 'e2e/login.spec.ts' with the name 'should redirect after login'.

Frequently Asked Questions about fix

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

FAQPage Schema
How do I debug flaky Playwright tests that pass locally but fail in CI?

To debug flaky Playwright tests, reproduce the failures, capture execution traces, and categorize the instability into timing, isolation, environment, or infrastructure issues to apply targeted remediation strategies.

What is the best way to capture execution traces for failing Playwright tests?

The best way to capture execution traces is by running the failing Playwright tests with specific configurations to replicate the failure, enabling in-depth debugging and systematic categorization of the root cause.

Why does my Playwright test suite have intermittent failures and how do I fix them?

Intermittent Playwright test failures stem from timing, isolation, environment, or infrastructure issues. Fix them by diagnosing the failure category, applying targeted remediation strategies, and verifying stability through repeated test executions.

Can I use this approach to verify that my Playwright test fixes are stable?

Yes, you can verify Playwright test fixes are stable by running the tests multiple times after applying targeted remediation strategies, ensuring test suite reliability through repeated verification and preventative measures.

When should I categorize test failures into timing or environment issues?

Categorize test failures into timing or environment issues during trace analysis to determine the root cause of Playwright test instability, allowing you to apply the correct targeted remediation strategy for reliable execution.