test: verify admin reference UI fidelity

This commit is contained in:
Codex
2026-09-13 22:09:15 +08:00
parent 72b0758e8c
commit 8b8972a77b
6 changed files with 112 additions and 10 deletions
+5
View File
@@ -58,5 +58,10 @@ for (const title of ['今日待办事项', '近期公益活动', '服务数据
assert.match(dashboard, /metrics/, '工作台缺少指标数据绑定')
assert.match(dashboard, /Asia\/Shanghai/, '工作台日期未固定为中国时区')
assert.match(dashboard, /loadDashboard/, '工作台未接入真实数据适配层')
assert.match(dashboard, /retryLoad/, '工作台缺少失败重试')
assert.match(dashboard, /activity-default\.jpg/, '活动封面缺少本地降级资产')
assert.match(dashboard, /item\.max\s*>\s*0/, '成效进度未处理 max 为 0 的情况')
assert.match(dashboard, /v-for="metric in dashboard\.metrics"/, '六指标必须由 DashboardModel 统一渲染')
console.log('Admin reference contracts passed')