锁定结果总览卡片合并结构断言

This commit is contained in:
wkc
2026-03-27 14:49:56 +08:00
parent d914c93e93
commit 55c8f1c29c
5 changed files with 20 additions and 10 deletions

View File

@@ -19,5 +19,7 @@ const mockSource = fs.readFileSync(
assert(overviewSource.includes(".stats-card"), "缺少风险总览统计卡样式");
assert(overviewSource.includes("box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);"), "风险总览统计卡应添加阴影");
assert(mockSource.includes('label: "无风险人员"'), "风险总览最后一个指标应改为无风险人员");
assert(!mockSource.includes('label: "风险交易"'), "风险交易文案应被替换");
assert(overviewSource.includes("item.icon"), "风险总览统计卡应展示小图标");
assert(overviewSource.includes("item.label"), "风险总览统计卡应展示标题");
assert(mockSource.includes('label: "无预警人数"'), "风险总览最后一个指标应改为无预警人数");
assert(!mockSource.includes('label: "无风险人员"'), "无风险人员文案应被替换");