refactor(前端): 前后台界面小字全面精简——删技术ID括号/页头操作提示条/机制解释句(2026-11-28 客户口径「这些小字都不需要多余,还有shopId啥的…除了必须要的比如任务ID密钥,其他精简一些」)

用户端 frontend-vue:
- jd-publish-shop.ts:shopLabel 只出店名(缺名兜底「店铺 N」),跨店/多店琥珀文案压成一两句,判据逻辑零改动
- JdPublishTab:删工具头/分类解释/品牌句后半,默认店铺/选品/collect-hint/中断回执/加价规则各压一句
- JdCollectTab:删工具头 desc、分类机制句、断点游标行,「页面筛选未生效兜底翻页中」从任务卡撤下
- jd-on-shelf 空态一句、JdConsolePage hero-sub 整段删(含过时的「正在建设中」)
- 品牌 10 个 tab:输入/筛选/加载长句压一句或删,任务卡删「结果ID/店铺ID/平台」技术行(店名已显形)
- 保留:错误出口、额度「当前在架X/Y」、GROUPS_EMPTY 空态动作句、检测按钮与店铺显形

后管 admin-frontend-vue:
- 每页顶部「当前页面操作提示」条整条下线(删 OperationGuide.vue+operation-guides.ts)
- 撞款/任务中心/关键词用量/密钥用量/客户端包/教程/软件版本/数字人/菜单/店铺密钥/登录页逐页删说明小字(保留:踢线警示、「留空=永不过期」、「不要带v前缀」、「仅支持.zip」、草稿需手动发布、已授权人数、安全提示)
- 编辑/建号弹窗 label 括号收短;代理弹窗/设备日志(删 pywebview/kk-browser 进程名)/密钥 pill title/授权弹窗 dim/品牌门控空态收短

测试同步(16 支改反钉或同步断言,全部当场绿):
- align-operation-guide 整份重写为反钉(组件与文案表不得回流)
- source-pin 台账 task-center-board 条目手工点名 7/3/5→24/14/28:旧值是切分器把正则字面量内裸引号当字符串开关吞掉 18 支用例的误量(stripNonCode 不识别 regex literal),本次改写恰好移除该文件最后两处带引号正则后测出真值;真实用例数反而 25→24(删 1 支 guide 用例),非真实增长

门禁:后管 node --test 1965/1965+vitest 253/253+vue-tsc rc=0;用户端 node 1150/mount 149/vue-tsc rc=0;ops 快检 --fast overall=pass(后端9.5/后管8.8/客户端9.8/用户端9.6)。本窗不发版;app_client/jar/后端零改动。
This commit is contained in:
2026-11-28 01:14:51 +08:00
parent 35e4645358
commit 10dec12ec0
67 changed files with 159 additions and 698 deletions
@@ -62,7 +62,7 @@ test('align_digital_human_page_wiring', () => {
assert.match(page, /page-nums/, '数字页码分页(像素复刻旧版)')
assert.match(page, /设为最新/, '按钮名对齐“设为最新”')
assert.match(page, /上传新版本/, '页头上传按钮名对齐')
assert.match(page, /上传数字人程序 ZIP 包,系统会自动计算 MD5 并存储到 OSS。上传后状态为草稿,需要手动发布/, '上传弹窗描述对齐')
assert.match(page, /上传后状态为草稿,需要手动发布/, '上传弹窗描述保留草稿态提示')
assert.match(page, /正在上传/, '上传进度文案')
assert.match(page, /digitalHumanDeleteConfirmText/, '删除确认文案走对齐模型')
assert.match(page, /fetchDigitalHumanDownloadUrl/, 'RELEASED 下载按钮点击取链接')
@@ -79,7 +79,7 @@ test('align_menu_list_loads_all_types_no_filter', () => {
test('align_menu_page_drag_and_type_wiring', () => {
const page = readSource('src/pages/account/MenusPage.vue')
assert.match(page, /拖动每行左侧的手柄可调整同级菜单的显示顺序,松开后自动保存/, '顶部拖拽提示文案对齐')
assert.doesNotMatch(page, /拖动每行左侧的手柄/, '顶部拖拽提示已按精简口径删除(2026-11-28)')
assert.match(page, /draggable/, '行手柄可拖拽')
assert.match(page, /menuSiblingGroupKey/, '拖拽分组按类型+父级')
assert.match(page, /MENU_TYPE_OPTIONS|菜单类型/, '新建/编辑弹窗含菜单类型下拉')
@@ -1,119 +1,35 @@
import test from 'node:test'
import assert from 'node:assert/strict'
import { existsSync } from 'node:fs'
import { join } from 'node:path'
import { readSource } from './helpers.ts'
import { adminPages } from '../src/router/routes.ts'
import {
OPERATION_GUIDES,
OPERATION_GUIDE_FALLBACK,
OPERATION_GUIDE_STORAGE_KEY,
operationGuideFor,
} from '../src/layout/operation-guides.ts'
/** 对齐旧版 admin-interactions.js guides 表:每业务菜单页顶部展示可折叠「当前页面操作提示」,文案沿用旧版原文;店铺撞款监控(例外)不展示。 */
/** 2026-11-28 精简口径(客户「删除多余小字,整体整洁美观」):每页顶部的「当前页面操作提示」条
* (OperationGuide.vue + operation-guides.ts 文案表)整体下线。本文件整组反向钉:组件、文案表、
* 壳层挂载点、旧文案任何一处都不许回流。 */
const EXCEPTED_KEY = 'admin_shop_data_duplicate_check'
const ROOT = process.cwd()
test('align_guide_users_matches_reference_text', () => {
const g = operationGuideFor('admin_users')
assert.ok(g)
assert.match(g.text, /^先用筛选定位账号,再编辑角色和菜单权限;删除账号会要求二次确认。/)
assert.deepEqual(g.steps, ['筛选账号', '编辑权限', '确认保存'])
})
test('align_guide_history_and_version_reference_text', () => {
assert.match(operationGuideFor('admin_history')!.text, /生成记录可按用户和时间范围回溯/)
assert.deepEqual(operationGuideFor('admin_version')!.steps, ['上传压缩包', '检查版本记录', '维护历史版本'])
})
test('align_guide_group_manage_own_text', () => {
const g = operationGuideFor('admin_group_manage')
assert.ok(g)
assert.notEqual(g, OPERATION_GUIDE_FALLBACK)
assert.deepEqual(g.steps, ['选择分组', '维护负责人与归属账号', '核对店铺可见范围'])
})
test('align_guide_duplicate_check_not_present', () => {
// 例外页:不展示提示条(不参与本轮对齐)。
assert.equal(operationGuideFor(EXCEPTED_KEY), null)
assert.equal(EXCEPTED_KEY in OPERATION_GUIDES, false)
})
test('align_guide_unknown_key_null', () => {
assert.equal(operationGuideFor(undefined), null)
assert.equal(operationGuideFor(null), null)
assert.equal(operationGuideFor('not-a-menu'), null)
assert.equal(operationGuideFor(''), null)
})
test('align_guide_every_router_page_has_guide_except_duplicate_check', () => {
// 路由注册表里的业务页除例外页外都应有独立/兜底提示。
const without = adminPages.filter((p) => p.menuKey !== EXCEPTED_KEY)
assert.ok(without.length >= 15, '业务页至少 15')
for (const page of without) {
assert.ok(operationGuideFor(page.menuKey), `缺少 guide: ${page.menuKey}`)
test('operation_guide_component_and_copy_table_are_removed', () => {
for (const rel of ['src/layout/OperationGuide.vue', 'src/layout/operation-guides.ts']) {
assert.equal(existsSync(join(ROOT, rel)), false, `${rel} 已随提示条一起删除,不得回填`)
}
})
test('align_guide_storage_key_matches_legacy', () => {
assert.equal(OPERATION_GUIDE_STORAGE_KEY, 'shufuAdminGuideCollapsed')
})
test('align_guide_component_in_layout_headline', () => {
test('operation_guide_not_referenced_in_layout_or_router', () => {
const layout = readSource('src/layout/AdminLayout.vue')
// 钉**模板挂载点**而不是 import 行(2026-10-05 修复轮 1):
// 只写 /OperationGuide/ 时,删掉模板里的 <OperationGuide /> 、留着那行 import 还是绿
// ——与 company-tab-wiring.test.ts 那条同形状,只覆盖一处等于没覆盖。
assert.match(layout, /<OperationGuide \/>/, '壳层模板必须挂着 <OperationGuide />')
const comp = readSource('src/layout/OperationGuide.vue')
assert.match(comp, /当前页面操作提示/, '标题对齐旧版 adminOperationGuide 语义')
assert.match(comp, /收起提示/, '折叠按钮文案')
assert.match(comp, /展开提示/, '展开按钮文案')
assert.match(comp, /operationGuideFor\(route\.meta\.menuKey\)/, '按菜单 key 查文案')
assert.match(comp, /OPERATION_GUIDE_STORAGE_KEY/, '折叠态读写同一 localStorage key')
// 钉**模板挂载点 + import 行**两处(与 company-tab-wiring 同形状):漏一处就是半截拆除。
assert.ok(!layout.includes('OperationGuide'), 'AdminLayout 不得再引用 OperationGuide(挂载点与 import 都算)')
assert.ok(!layout.includes('当前页面操作提示'), '提示条标题不得回流壳层')
const router = readSource('src/router/routes.ts')
assert.ok(!router.includes('operation-guide'), '路由层不得给提示条留注册口')
})
test('align_guide_fallback_shape', () => {
assert.equal(OPERATION_GUIDE_FALLBACK.steps.length, 3)
assert.ok(OPERATION_GUIDE_FALLBACK.text.length > 10)
})
/**
* 2026-10-14 控制方把公司 tab 那几句观感说明撤了:提示条按 menuKey 取、不分支角色,
* 谁能进这一页谁就看得到。「超级管理员可用上方 tab 切换」「本页全平台共享」这类只对超管成立的话
* 会摊到普通账号脸上,所以整批撤掉。这支用例是反向钉:**不允许回流**。
*
* 两把尺子:① ASCII 的 `tab`,②那四句原文(从已提交的那一版操作提示表里拿回来的,不是抄写)。
* ②单独不可信——中文串在工具链里被插进一个字就会永远匹配不上,而负向断言照样绿;
* 所以下面先钉死「这四句都含 ASCII 的 tab」,让①成为即使②坏了也还有牙的那一把。
*/
test('company_tab_copy_is_pulled_from_every_guide_and_must_not_come_back', () => {
const REMOVED = [
'\u8d85\u7ea7\u7ba1\u7406\u5458\u53ef\u7528\u9875\u9762\u4e0a\u65b9\u7684\u516c\u53f8 tab \u5207\u6362\u516c\u53f8\uff0c\u5207\u6362\u540e\u884c\u6570\u4f1a\u53d8\u5316\u2014\u2014\u884c\u6570\u53d8\u5c11\u4e0d\u662f\u6570\u636e\u4e22\u4e86\u3002',
'\u672c\u9875\u5168\u5e73\u53f0\u5171\u4eab\uff0c\u4e0d\u6309\u516c\u53f8\u533a\u5206\uff1a\u8d85\u7ea7\u7ba1\u7406\u5458\u5207\u6362\u4e0a\u65b9\u516c\u53f8 tab \u65f6\u5b83\u4e0d\u4f1a\u53d8\uff0c\u8fd9\u4e0d\u662f\u7b5b\u9009\u574f\u4e86\u3002',
'\u5e97\u94fa\u5f52\u54ea\u5bb6\u516c\u53f8\u7531\u300c\u8d1f\u8d23\u4eba\u300d\u51b3\u5b9a\uff0c\u4e0d\u7531\u516c\u53f8 tab \u51b3\u5b9a\uff1a\u8d1f\u8d23\u4eba\u9009\u81ea\u5df1\uff0c\u5e97\u94fa\u5c31\u843d\u5728\u4f60\u81ea\u5df1\u90a3\u5bb6\u3002',
'\u8d85\u7ea7\u7ba1\u7406\u5458\u5207\u6362\u4e0a\u65b9\u516c\u53f8 tab \u540e\uff0c\u5217\u8868\u53ea\u4fdd\u7559\u5f53\u524d\u516c\u53f8\u8d26\u53f7\u76f8\u5173\u7684\u5206\u7ec4\u3002',
]
const keys = Object.keys(OPERATION_GUIDES)
assert.ok(keys.length >= 20, `分母只有 ${keys.length} 页,不像整张注册表`)
// 禁句自检:四条互不相同、都够长、且都含 ASCII 锚 tab —— 少一条下面那把 ASCII 尺子就盖不住。
assert.equal(new Set(REMOVED).size, 4, '禁句清单塌了')
for (const s of REMOVED) {
assert.ok(s.length > 20, `禁句短得可疑:${s}`)
assert.ok(s.includes('tab'), `禁句不含 ASCII 锚 tab,反向断言会失明:${s}`)
}
for (const key of keys) {
const text = operationGuideFor(key)!.text
assert.equal(text.includes('tab'), false, `${key} 的文案又出现了 tab`)
for (const s of REMOVED) {
assert.equal(text.includes(s), false, `${key} 又带回了撤掉的那句:${s}`)
}
}
// fallback 会被所有没有独立文案的页共用,那四句同样不许进它。
assert.equal(OPERATION_GUIDE_FALLBACK.text.includes('tab'), false, 'tab 那句不许进 fallback')
// 撤的是文案,不是功能:tab 条还在,而且仍然只由 tab 自己表达"当前哪家"。
/** 历史反钉沿用:公司 tab 的观感说明句(「超级管理员可用上方 tab 切换」等)仍不许回流 CompanyTabs。 */
test('company_tab_copy_must_not_come_back', () => {
const tabs = readSource('src/layout/CompanyTabs.vue')
assert.ok(tabs.length > 0, '取样集非空自检:CompanyTabs.vue 读到了')
assert.equal(tabs.includes('company-tab-hint'), false, '不许有页头"当前公司"提示条')
assert.equal(tabs.includes('company-tab-hint'), false, '不许有页头「当前公司」提示条')
assert.equal(tabs.includes('当前公司'), false, '当前公司只由 is-active 的 tab 表达')
assert.ok(tabs.includes('useCompanyTabStore'), '公司 tab 本身没被一起撤掉')
})
@@ -13,7 +13,7 @@ test('align_software_version_page_wiring', () => {
assert.match(page, /发布成功/, '成功提示留驻弹窗')
assert.match(page, /uploadMsg/, '成功/失败文案在弹窗内展示')
// 上传弹窗文案(对齐 admin.html:6094-6110)。
assert.match(page, /上传软件 ZIP 包,系统会自动计算 MD5 并存储到 OSS。/, '弹窗描述对齐')
assert.doesNotMatch(page, /自动计算 MD5/, '弹窗机制描述已按精简口径删除(2026-11-28)')
assert.match(page, /上传软件版本/, '上传按钮名对齐')
assert.match(page, /上传新版本/, '弹窗标题对齐')
// 空态(对齐 admin.js:6296 暂无版本记录)。
@@ -2,7 +2,6 @@ import test from 'node:test'
import assert from 'node:assert/strict'
import { readSource } from './helpers.ts'
import { adminPages } from '../src/router/routes.ts'
import { OPERATION_GUIDES } from '../src/layout/operation-guides.ts'
/** 工作台客户端包管理页:独立渠道、上传直传、服务端 sha256。 */
@@ -54,9 +53,3 @@ test('align_workbench_client_model_parsers', () => {
assert.match(model, /isValidWorkbenchClientVersion/, '版本号必填校验')
assert.match(model, /\^\\d\+\\\.\\d\+\\\.\\d\+\$/, '版本号仅接受纯数字 x.y.z')
})
test('align_workbench_client_guide_registered', () => {
const guide = OPERATION_GUIDES.admin_workbench_client_package
assert.ok(guide, '每个菜单页都必须有操作提示')
assert.match(guide.text, /sha256/, '提示说明服务端会复算摘要')
})
@@ -1298,9 +1298,9 @@
"reads": 1
},
"task-center-board.test.ts": {
"cases": 7,
"pins": 3,
"reads": 5
"cases": 24,
"pins": 14,
"reads": 28
},
"timer-cleanup-pairing.test.ts": {
"cases": 5,
@@ -900,9 +900,8 @@ test('挂载与单一尺子:tab 条挂在壳层、公司名读 companyName、
const layout = readSource('src/layout/AdminLayout.vue')
assert.ok(layout.includes(`import CompanyTabs from '@/layout/CompanyTabs.vue'`), '壳层没 import CompanyTabs')
assert.ok(layout.includes('<CompanyTabs />'), '壳层没挂 <CompanyTabs />')
// 钉**模板里的挂载点**而不是 import 行:只写 layout.includes('OperationGuide') 时,删掉 <OperationGuide />
// 而留着那行 import 照样绿——一条"声称保护而不保护"的断言比没有更危险(后续评审会拿它当已核事实)。
assert.ok(layout.includes('<OperationGuide />'), '挂 tab 时不许把 OperationGuide 摘掉(align_guide_component_in_layout_headline 钉着)')
// 2026-11-28 精简口径:操作提示条整体下线(align-operation-guide 反向钉),壳层不得再挂。
assert.ok(!layout.includes('OperationGuide'), '操作提示条已删,壳层不得再引用 OperationGuide')
const tabs = readSource('src/layout/CompanyTabs.vue')
assert.ok(tabs.length > 0, '取样集非空自检:CompanyTabs.vue 读到了')
@@ -9,7 +9,6 @@ import {
toCreateUserRequest,
validateCreateUserForm,
} from '../src/pages/account/user-create-model.ts'
import { OPERATION_GUIDES } from '../src/layout/operation-guides.ts'
/**
* 建号公司口径(2026-10-05 修订):admin/normal 建号仍不让用户挑公司——请求体不带
@@ -152,18 +151,6 @@ test('弹窗与后端同口径:角色候选来自纯函数,且后端真的
'admins 候选要带 company_id 过滤,且只在传了 company_id 时生效')
})
test('「公司管理」引导文案说的是自动继承,并写清公司超管这一例外', () => {
const guide = OPERATION_GUIDES.admin_companies.text
assert.match(guide, /操作者自己所在的公司/, '要写清归属的真实口径:落在操作者本公司')
assert.match(guide, /请用那个公司自己的管理员登录|用该公司自己的管理员登录/,
'要给别家建号只能换账号登录——不写这句,超管会以为自己建的号能归到别家')
assert.match(guide, /公司超级管理员/,
'2026-10-05 起开设公司超管是唯一要在建号时选公司的例外,文案要说清,别让人以为下拉没了是坏了')
for (const stale of ['建号时选哪家公司', '停用后不能再用于新建账号']) {
assert.equal(guide.includes(stale), false, `文案仍含已失效的说法:${stale}`)
}
})
/** 从 Java 源码里按大括号配平切出一个方法体(只看 resolveTargetCompanyId,别把邻居方法的 throw 算进来)。 */
function javaMethod(source: string, signature: string): string {
const start = source.indexOf(signature)
@@ -25,7 +25,6 @@ import type { AdminMenuNode } from '@/types/admin'
// AdminLayout 的顶栏/告警子组件各带定时器或远端拉取,与本契约无关,替身化。
vi.mock('@/components/NotificationBell.vue', () => ({ default: { template: '<div class="bell-stub" />' } }))
vi.mock('@/components/ExpiryNotice.vue', () => ({ default: { template: '<div class="expiry-stub" />' } }))
vi.mock('@/layout/OperationGuide.vue', () => ({ default: { template: '<div class="guide-stub" />' } }))
vi.mock('@/layout/CompanyTabs.vue', () => ({ default: { template: '<div class="company-tabs-stub" />' } }))
vi.mock('@/layout/GlobalErrorContainer.vue', () => ({ default: { template: '<div class="error-stub" />' } }))
@@ -1229,8 +1229,8 @@ describe('京东数据库写权限分档(商品行写=仅超管档;分组
expect(wrapper.find('.jd-toolbar').exists()).toBe(false, '工具栏(全选/归类/删除)整块不渲染')
expect(wrapper.find('.jd-delete-btn').exists()).toBe(false, '删除商品按钮不渲染')
expect(wrapper.find('[aria-label="当前分组"]').exists()).toBe(false, '普通员工不出分组下拉')
expect(wrapper.text()).toContain('只读:编辑/删除需超级管理员或公司超级管理员', '只读提示必须看得见并区分两类写权限')
expect(wrapper.text()).toContain('分类在左侧「分类管理」查看与维护', '提示把分类维护入口指向侧栏「分类管理」')
// 2026-11-28 精简口径:常驻只读 tip 删(写控件已按权限隐藏),改反向钉不得回流。
expect(wrapper.text()).not.toContain('只读:编辑/删除需超级管理员或公司超级管理员')
// 读面不受影响:筛选、侧栏分类行、点卡片开只读详情都还在。
expect(wrapper.findAll('.jd-card')).toHaveLength(1)
@@ -1281,7 +1281,8 @@ describe('京东数据库写权限分档(商品行写=仅超管档;分组
expect(wrapper.find('.jd-delete-btn').exists()).toBe(false, '删除商品(商品行写)对管理人员收回——「弄反了」不得回潜')
expect(toolbarBtn(wrapper, '归入分类').exists()).toBe(true, '分类写入口对可写组渲染')
expect(toolbarBtn(wrapper, '取消归属').exists()).toBe(true)
expect(wrapper.text()).toContain('只读:编辑/删除需超级管理员或公司超级管理员', '管理人员看到商品行写只读提示')
expect(wrapper.text()).not.toContain('只读:编辑/删除需超级管理员或公司超级管理员',
'2026-11-28 精简口径:只读 tip 已删,管理人员侧同样不得回流')
// 分组筛选随分类可写放开:单组也出下拉(2026-11-23 用户口径,多组切换见后续用例)。
expect(wrapper.find('[aria-label="当前分组"]').exists()).toBe(true, '管理人员出分组下拉(单组也出下拉)')
+1 -1
View File
@@ -10,7 +10,7 @@ test('test_task_250_users_list_normal_primary_path', () => {
const page = readSource('src/pages/account/UsersPage.vue')
assert.match(page, /roleLabel/, '角色列需走中文 roleLabel 映射')
assert.match(page, /所属管理员/, '需展示“所属管理员”列/筛选项')
assert.match(page, /无开放注册|开放注册入口/, '页头应有“无开放注册入口”说明')
assert.doesNotMatch(page, /开放注册/, '页头说明已按精简口径删除(2026-11-28)')
})
test('test_task_250_users_list_normal_variant_input', () => {
+1 -1
View File
@@ -44,7 +44,7 @@ test('test_task_265_permission_normal_primary_path', () => {
assert.match(page, /权限配置/, '权限入口')
assert.match(page, /fetchImageVideoPermissionUsers/, '权限用户加载')
assert.match(page, /saveImageVideoPermissions/, '权限保存')
assert.match(page, /数据范围/, '权限弹窗语义')
assert.doesNotMatch(page, /数据范围/, '权限弹窗说明已按精简口径删除(2026-11-28)')
})
test('test_task_265_permission_boundary_limit_or_missing_field', () => {
@@ -2,7 +2,6 @@ import test from 'node:test'
import assert from 'node:assert/strict'
import { readSource } from './helpers.ts'
import { adminPages, validateAdminPages } from '../src/router/routes.ts'
import { operationGuideFor } from '../src/layout/operation-guides.ts'
import {
ACTIVE_TASK_STATUS,
MODULE_OPTIONS,
@@ -25,7 +24,7 @@ import {
variantStatusLabel,
} from '../src/pages/task-center/task-center-model.ts'
// 客户端任务管理看板(后台):路由注册 / guides 对齐 / 接口层 / 纯逻辑映射。
// 客户端任务管理看板(后台):路由注册 / 接口层 / 纯逻辑映射。
const PAGE = 'src/pages/task-center/TaskCenterBoardPage.vue'
const TASK_TABLE = 'src/pages/task-center/TaskCenterTaskTable.vue'
@@ -41,13 +40,6 @@ test('task_center_route_registered_with_menu_key', () => {
assert.deepEqual(validateAdminPages(adminPages), [])
})
test('task_center_guide_present_for_menu_key', () => {
const guide = operationGuideFor('admin_task_center')
assert.ok(guide, '菜单 key 有独立 guide(align-operation-guide 强制)')
assert.ok(guide.text.length > 10)
assert.equal(guide.steps.length, 3)
})
test('task_center_api_has_five_endpoints', () => {
const api = readSource(API)
for (const path of [
@@ -145,8 +137,8 @@ test('task_center_variant_status_options_are_the_four_states', () => {
const page = readSource(PAGE)
assert.equal(/只看在跑/.test(page), false, '面板说明不再写只看在跑')
assert.match(page, /title="麦象变体采集任务条数(全部状态)/, '徽章 tooltip 换成全部状态口径')
assert.match(page, /默认全部状态(待执行\/处理中\/成功\/失败)/, '面板说明写明四态')
assert.doesNotMatch(page, /麦象变体采集任务条数/, '徽章 tooltip 已按精简口径删除(2026-11-28)')
assert.doesNotMatch(page, /默认全部状态/, '面板说明已删,四态只留在下拉选项里(2026-11-28)')
})
test('task_center_device_display_falls_back_to_truncated_id', () => {
@@ -336,7 +328,7 @@ test('task_center_task_list_columns_are_trimmed_to_the_data_that_exists', () =>
assert.equal(/colspan="9"/.test(table), false, '加国家列后空态不该还写 9 列')
assert.match(style, /\.shop-filter\s*\{[^}]*position: relative/, '店铺组是提示的定位父元素')
assert.match(style, /\.filter-tip\s*\{[^}]*position: absolute/, '提示绝对定位,不再撑高该组把 label 顶上去')
assert.equal(/filter-tip/.test(page + style), false, '筛选提示整条删除(含样式,2026-11-28)')
assert.match(style, /\.form-row\s*\{[^}]*align-items: flex-end[^}]*margin-bottom: 22px/, '底部留白容纳提示行')
assert.match(
page,