8935081ac5
Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
1.2 KiB
Markdown
36 lines
1.2 KiB
Markdown
# Changelog — 全站功能自动化验收
|
|
|
|
**日期**: 2026-06-01
|
|
|
|
## 摘要
|
|
|
|
按用户要求由 Agent 对**每项可安全自动化的功能**做全量验证(非抽测):生产 API 53 项 + Playwright 15 路由;修复 `/health/detail` 401。
|
|
|
|
## 动机
|
|
|
|
用户要求「每个功能自己都试」,不接受抽测式交付。
|
|
|
|
## 涉及文件
|
|
|
|
- `server/main.py` — `/health/detail` 纳入 DB 中间件
|
|
- `tests/test_api.py` — `run_tests()`,避免 import 副作用
|
|
- `tests/test_full_site_api.py`(新)— 28 项扩展 API
|
|
- `frontend/e2e/full-acceptance.spec.mjs`(新)— 14 路由 UI
|
|
- `frontend/playwright.config.mjs`、`frontend/package.json` — `@playwright/test`、`test:e2e`
|
|
- `scripts/run_full_e2e.sh`(新)
|
|
- `docs/reports/2026-06-01-full-acceptance-report.md`(新)
|
|
- `.cursorrules`、`docs/project/testing-workflow-ai-first.md`(流程,前序提交)
|
|
|
|
## 验证
|
|
|
|
- 生产:`test_api.py` 25/25、`test_full_site_api.py` 28/28
|
|
- 本地:`npx playwright test` 15/15 vs api.synaglobal.vip
|
|
|
|
## 迁移 / 重启
|
|
|
|
- 已 `supervisorctl restart nexus` 部署 `main.py` 修复
|
|
|
|
## 回滚
|
|
|
|
- 还原 `server/main.py` DbSessionMiddleware 条件并重启
|