.agents/skills/frontend-testing/SKILL.md
Use this skill for Vitest work under web/ and packages/dify-ui/. Do not use it for Python tests or Cucumber/Playwright tests under e2e/.
Before writing, changing, or reviewing frontend tests, read web/docs/test.md completely. It is the single source of truth. This skill defines the execution workflow and must not add requirements that conflict with or duplicate that guide.
web/, Dify UI Browser Mode, or a styled Storybook test.When reviewing existing tests, recommend deleting low-value tests as readily as adding missing behavior coverage.
Run focused tests from the owning workspace:
# web/
vp test run path/to/spec-or-directory
# packages/dify-ui/
vp test run --project unit src/path/to/spec
For styled Dify UI behavior, run vp test --project storybook --run. Run broader checks only after the focused behavior passes.