8935081ac5
Co-authored-by: Cursor <cursoragent@cursor.com>
1.2 KiB
1.2 KiB
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 项扩展 APIfrontend/e2e/full-acceptance.spec.mjs(新)— 14 路由 UIfrontend/playwright.config.mjs、frontend/package.json—@playwright/test、test:e2escripts/run_full_e2e.sh(新)docs/reports/2026-06-01-full-acceptance-report.md(新).cursorrules、docs/project/testing-workflow-ai-first.md(流程,前序提交)
验证
- 生产:
test_api.py25/25、test_full_site_api.py28/28 - 本地:
npx playwright test15/15 vs api.synaglobal.vip
迁移 / 重启
- 已
supervisorctl restart nexus部署main.py修复
回滚
- 还原
server/main.pyDbSessionMiddleware 条件并重启