AgentSkillsCN

e2e-smoke

运行 Playwright E2E 测试作为冒烟测试,并汇总测试结果。在被要求“运行 E2E 测试”“执行冒烟测试”或“检查 E2E 测试”时,可选用此功能。

SKILL.md
--- frontmatter
name: e2e-smoke
description: Run Playwright E2E tests as smoke; summarize results. Use when asked to "run E2E", "smoke test", or "check E2E".
compatibility: TikTok-AI-Agent. Node, Playwright. Run from repo root. Browsers via `npx playwright install --with-deps` if needed.

E2E Smoke

Run Playwright E2E tests and report pass/fail with failing test names.

Input

  • Scope: "local" (default) or "CI". Local may use existing dev server or start one; CI typically runs in workflow.

Steps

  1. Ensure Playwright browsers are installed: npx playwright install --with-deps (or npx playwright install on Windows/macOS if sufficient).
  2. From repo root: npm run test:e2e.
  3. Summarize: pass or fail, and if fail list the failing spec names (and optionally first error lines). Do not modify tests to make them pass; report and optionally suggest implementation fixes.

Output

  • "E2E smoke: pass" or "E2E smoke: fail" plus failing test names and brief error info.

References