SKILL

fix

诊断并修复失败或不稳定的 Playwright 测试。适用于测试失败、仅偶尔通过、间歇性中断或需要修复的情况。

机器翻译
查看英文原文

Diagnose and fix a failing or flaky Playwright test. Use whenever a test fails, passes only sometimes, breaks intermittently or needs fixing.

适用对象:对象待分类。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Fix Failing or Flaky Tests
  • Input
  • Steps
  • 1. Reproduce the Failure
  • 2. Capture Trace
  • 3. Categorize the Failure
  • 4. Apply Targeted Fix
  • 5. Verify the Fix

Diagnose and fix a Playwright test that fails or passes intermittently using a systematic taxonomy. $ARGUMENTS contains: A test file path: e2e/login.spec.ts A test name: ""should redirect after login" A description: "the checkout test fails in CI but passes locally" Run the test to capture the error: If the test passes, it's likely flaky. Run burn-in: If it still passes, try with parallel workers: Run with full tracing: Read the trace output. Use /debug to analyze trace files if available. Load flaky-taxonomy.md from this skill directory. Every failing test falls into one of four categories: | Category | Symptom | Diagnosis | |---|---|---| | Timing/Async | Fails intermittently everywhere | --repeat-each=20 reproduces locally | | Test Isolation | Fails in suite, passes alone | --workers=1 --grep "test name" passes | | Environment | Fails in CI, passes locally | Compare CI vs local screenshots/traces | | Infrastructure | Random, no pattern | Error references browser internals | Timing/Async: Replace waitForTimeout() with web-first assertions Add await to missing Playwright calls Wait for specific network responses before asserting Use toBeVisible() before interacting with elements Te

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
alirezarezvani/claude-skills
源文件
engineering-team/playwright-pro/skills/fix/SKILL.md
固定版本
8f082544116fc0d014188e521ca40304cdfc86b0
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:alirezarezvani/claude-skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:46.336Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。