Files
Agent-System/web/e2e
weichen 88e33282db fix(freedoc): persist uploaded file metadata and text body server-side
上传文档跨端不可访问修复(ISSUE-20260927-upload-doc-cross-device):
- 迁移 00076:freeform_documents 增加 source_filename/mime/size_bytes/asset_id
- freedoc:Create/Get/List 读写源文件元数据,负值拒绝
- 前端:注册前全部附件先登记 CAS 并预读文本正文;文本正文嵌入注册
  markdown;跨端恢复 sourceType/fileMeta 路由回文件预览器
- 大小显示 formatFileSize(<512B 不再显示 0 KB)
- E2E 新增 FS-UPLOAD-02 跨浏览器上下文可访问性用例

回归:go vet/arch-check/go test -short(隔离 PG)+ web npm test/build 全绿;
存量无元数据旧文档不可恢复(重新上传即可)。
2026-09-27 07:45:15 +00:00
..

Playwright E2E 入口矩阵

默认 playwright test / npm run test:e2e:list 只枚举用例,不实跑(各 spec 内部有门禁 skip)。

Spec 门禁变量 npm 脚本 备注
document-revision-runtime.spec.ts RUN_UI_ACCEPTANCE=1 + UI_PHASE npm run test:ui-acceptance:main / :post-restart 主链 serial;UI_PHASE=post-restart 产物隔离;默认证据 assets/2026-09-22-docrev-ui-rerun;禁止写入历史/143 目录
admin-console.spec.ts RUN_UI_ACCEPTANCE=1 npm run test:e2e:admin-console 需管理员账号
controlled-document-reload.spec.ts RUN_UI_ACCEPTANCE=1 npm run test:e2e:controlled-document-reload
governance-action-level-authz.spec.ts RUN_UI_ACCEPTANCE=1 npm run test:e2e:governance-action-level-authz
intent-plan-cards.spec.ts RUN_UI_ACCEPTANCE=1 npm run test:e2e:intent-plan-cards
project143-regression.spec.ts RUN_UI_ACCEPTANCE=1 npm run test:e2e:project143-regression 项目 143 只读
workflow-plan-409-frozen-duties.spec.ts RUN_UI_ACCEPTANCE=1 npm run test:e2e:workflow-plan-409-frozen-duties
conversation-intent-dual-tab.spec.ts INTENT_DUAL_TAB=1 npm run test:e2e:conversation-intent-dual-tab 独立双标签风险口径
swboot-wizard.spec.ts RUN_UI_ACCEPTANCE=1 npm run test:e2e:swboot-wizard SWBOOT L6 软件向导二次验收;需 project:create 账号
full-system-browser-e2e.spec.ts RUN_UI_ACCEPTANCE=1 npm run test:e2e:full-system-browser 全系统多人真实浏览器验收;证据默认 assets/2026-09-26-full-system-browser-e2e;账号前缀 e2e26_

约定:

  • playwright test --list 期望随新增 spec 递增(含 full-system-browser-e2e);Wave 3 已退役冗余 document-revision.spec.ts / 消灭 DOCREV_E2E_BASE_URL。
  • 新增 spec 必须同时补本表与 package.json 脚本。
  • 不升 MULTI_INTENT_PLAN_TIER;不触碰项目 143 写路径。
  • DOCREV 收口分组(依赖 UI-00.. 前置,不可安全单独中途开跑):npm run test:ui-acceptance:groups → UI-03 / UI-05 / UI-06 / UI-07-08-09 / UI-11 / UI-13 / post-restart。
  • UI_PHASE=post-restart 写 playwright-output-post-restart/ + ui-acceptance-results-post-restart.json,不得覆盖 main。