修复 Cypress 端到端测试
fix-e2e
修复失败的 Cypress 端到端测试。当端到端测试失败且需要修复时使用。
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 13
- Forks
- 1
01 前言 Front Matter
- name
- fix-e2e
- description
- Fix failing Cypress e2e tests. Use when e2e tests are failing and need to be fixed.
- disable-model-invocation
- true
03 SKILL.md 正文
Fix failing e2e tests
Follow these steps to diagnose and fix failing Cypress e2e tests.
1. Check diffs
Run git diff to understand what has changed and what might be causing failures.
2. Build first
Run pnpm build from the repo root before running tests. The backend serves the built frontend, so a fresh build is required.
3. Run e2e tests
pnpm --filter app e2e:headless
This runs Cypress in headless mode. The test setup script (pnpm --filter app setup-e2e) creates a test project and runs automatically as part of e2e:headless.
4. Fix and iterate
Read the Cypress error output carefully, fix the issue in the source code, rebuild with pnpm build if changes are NOT ONLY in tests, and re-run pnpm --filter app e2e:headless. Repeat until all tests pass.
Key paths
- E2e tests:
tools/app/cypress/e2e/ - Cypress config:
tools/app/cypress.config.ts
04 同仓库更多 Skills
默认技能
defaultSkill
暂无简介
MCP 技能发现与应用
dynamic-skill-discovery
通过 MCP 服务器发现并应用 Cyberismo 项目技能。在 Cyberismo 项目中执行任何任务之前使用。
CHANGELOG 发布说明生成
release-notes
通过读取上一次标签以来合并的 PR,为 Cyberismo CLI 版本起草 CHANGELOG.md 的下一节内容。在发布 @cyberismo/cli 时使用。