test(frontend): 端点快照补 costGuard 两项,catch 棘轮 blocks 按实扫记到 300

This commit is contained in:
2026-10-24 14:25:00 +08:00
parent 5547237950
commit ccb30aa99e
2 changed files with 10 additions and 1 deletions
@@ -27,7 +27,11 @@ const BASELINE = {
// 299 = 298 + 桌面端铃铛 toggleGroup 的一支 try/catch(10-13 通知聚合改造):展开明细要单独发请求,
// 失败写进面板内 loadError(与列表加载同一个可见出口,不弹全局打扰),改前是"点了没反应"。
// silent 一格没涨:该支首条语句不是 console.*,且有可见出口。
blocks: 299,
// 300 = 299 + 损耗保护弹窗 resume() 的一支 try/catch(10-24 cost-guard):用户点「继续任务」
// 解闸失败时必须当场说清楚(console.warn 留链 + ElMessage.error 给用户),不能让按钮变成
// 「点了没反应」——这一支首条语句虽是 console.*,但块内有 ElMessage 用户可见出口,
// 按扫描器口径不算静默,所以 silent 一格没动、只进 blocks。
blocks: 300,
// 298 = 296 + 全局错误出口 app-error.ts 的两支新 try/catch(10-09 装 app.config.errorHandler /
// window.onerror / unhandledrejection 时引入),两支都不是"吞":
// ① String(reason) 对无 toString 的对象/Symbol 会抛,兜法返回一句中文占位文本,
+5
View File
@@ -19,6 +19,7 @@ const MODULE_KEYS = [
'similarAsin',
'appearancePatent',
'userSecret',
'costGuard',
'notification',
'collectData',
'imageVideo',
@@ -315,6 +316,10 @@ test('test_endpoints_frozen_snapshot', () => {
"proxyBalance": "/api/user-secrets/proxy-balance",
"proxyPlan": "/api/user-secrets/proxy-plan"
},
"costGuard": {
"status": "/api/user/cost-guard/status",
"resume": "/api/user/cost-guard/resume"
},
"notification": {
"summary": "/api/notifications/summary",
"list": "/api/notifications",