Files
Nexus/docs/changelog/2026-06-09-full-site-testing-delivery.md
T
Nexus Agent 0f6f91e61a fix(api): align alerts/commands contracts and ship full-site test suite.
Restore alert history filters and stats fields, paginate command/session logs for the SPA, show script labels on schedules, and land integration/E2E coverage with rebuilt web assets.
2026-06-09 02:13:13 +08:00

1.9 KiB
Raw Blame History

Changelog — 全站测试体系交付(Wave 15 + E2E 35/35

日期: 2026-06-09

摘要

补齐 test-case-matrix 中 IT/CH/E2E 缺口;Playwright 全量 35/35 greenpytest 455 passed(含 slow)。

动机

  • Wave 15 仅有 pytest 证据,缺 Playwright 全量与并行稳定性。
  • 并行 UI 登录导致 admin 锁定;web/app/assets 陈旧 hash 堆积(清理前 7086 文件 / 491MB)。

后端测试(新增/扩展)

路径
Integration tests/integration/test_*.py14 文件,含 IT-INST/FILE/SRV-003 等)
Chain tests/chain/test_*.py8 文件,含 CH-BAT/CH-EXEC 完成态)
Catalog tests/acceptance_catalog.py

前端 E2E

路径
Worker 会话 frontend/e2e/fixtures.mjs
导航助手 frontend/e2e/helpers.mjs(侧栏点击,避免 keep-alive 卡仪表盘)
页域 spec frontend/e2e/pages/*.spec.mjs18+ full-acceptance.spec.mjs
配置 frontend/playwright.config.mjspackage.json test:e2e

CI

  • .gitea/workflows/ci-cd.yml:分层 pytest + 可选 Playwright job

文档

  • docs/testing/test-case-matrix.md
  • docs/design/specs|plans/2026-06-08-full-site-testing-strategy*.md
  • docs/reports/2026-06-08-playwright-e2e-full-run.md

迁移 / 重启

  • 无 DB 迁移。
  • E2E 需 NEXUS_E2E_PASSWORD + API :8600;改前端后 npx vite build

验收范围调整(2026-06-09

  • MCP-INST-001(安装向导各 step UI):用户确认不验收;矩阵标 ;保留 E2E-INST-001 静态页可达 + UT/IT 安装锁即可。

验证(2026-06-09 复验)

pytest tests/integration tests/chain -q          # 27 passed
pytest tests/ -m "not chain and not slow" -q   # 427 passed
pytest tests/ -m slow -q                        # 1 passed
cd frontend && npm run test:e2e                 # 35 passed
bash deploy/pre_deploy_check.sh                 # 目标 7/7