AGENT SKILL

frontend-testing-basics

暂无简介

License 许可
MIT
最近更新
2026-05-26
Stars
★ 0
Forks
0

02 资源文件 1

03 SKILL.md 正文

Frontend Testing Basics

Follow ../_shared/skill-contract.md.

Purpose

Define lightweight but meaningful tests for frontend behavior.

Use when

  • behavior changes
  • state handling changes
  • UI copy or validation changes

Do not use when

  • the task is just documentation
  • the task is backend-only

Inputs required

  • user scenario
  • behavior that must not regress
  • available test tools

Outputs expected

  • test scope
  • sample test cases
  • verification steps

Workflow

  1. Identify the behavior to protect.
  2. Split unit, integration, and UI-level coverage.
  3. Keep assertions user-facing.
  4. Add regressions for the risky path.
  5. Verify locally.

Validation checklist

  • [ ] Happy path covered
  • [ ] Error path covered
  • [ ] Tests assert behavior, not implementation trivia

References

  • ../../prompts/review_architecture.md
  • ../../prompts/refactor_feature.md

04 同仓库更多 Skills