AgentSkillsCN

zerg-e2e

Zerg E2E 测试原则与稳定性保障措施。当修复不稳定 E2E 测试或重新启用测试时使用。

SKILL.md
--- frontmatter
name: zerg-e2e
description: Zerg E2E principles and stability guardrails. Use when fixing flaky E2E or re-enabling tests.

Zerg E2E Guardrails

Principles

  • Correctness first, then speed.
  • Avoid silent success: helpers must fail loudly.
  • Wait on conditions, not sleeps.

Typical Fixes

  • Selector drift → add data-testid in React.
  • Readiness waits → wait for network response, not optimistic UI.
  • Shared state → isolate data per test/worker.

Common Commands

bash
make test-e2e-core
make test-e2e
make test-e2e-single TEST=tests/<spec>.ts
make test-e2e-errors