frontend-vue 退役:删新版/旧版选项控件与删除品牌/巡店删除入口,用例族随实况收敛
- 删 ZiniaoVersionSetting.vue / ziniao-version.ts;9 个 Tab 摘 ziniao_version 载荷 - 删 BrandDeleteBrandTab.vue / BrandPatrolDeleteTab.vue 与 delete-brand 类型模块; 路由、工具目录(20→18)、端点表、progress-light 模块(12→10)、withdraw.ts 巡店段、 java-modules re-export 同步摘除 - 测试面:node --test 17 处红按实况收敛(端点冻结快照摘两组、适配器 16→14、窄集合台账 摘两页、六页→五页、reexport/快照随实况),modules-delete-brand.test.ts 整文件删 - vue-tsc+vite build 通过;node --test 837/837 绿
This commit is contained in:
@@ -29,8 +29,9 @@ function mockRequest(
|
||||
|
||||
const okResponse = (data: unknown) => Promise.resolve({ data: { success: true, message: 'ok', data } })
|
||||
|
||||
// 2026-10-15 旧版界面退役:deleteBrand 与 patrolDelete 两模块随功能摘除(12→10)。
|
||||
const LIGHT_MODULES: ProgressLightModule[] = [
|
||||
'publish', 'deleteBrand', 'productRisk', 'shopMatch', 'patrolDelete',
|
||||
'publish', 'productRisk', 'shopMatch',
|
||||
'queryAsin', 'shopDataCrawl', 'withdraw', 'priceTrack', 'similarAsin',
|
||||
'appearancePatent', 'collectData',
|
||||
]
|
||||
@@ -153,11 +154,11 @@ test('test_light_snapshot', async (t) => {
|
||||
return okResponse({ items: [{ taskId: 1, status: 'RUNNING', fileReady: false }], missingTaskIds: [] })
|
||||
})
|
||||
await getModuleProgressLight('appearancePatent', [1], { force: true })
|
||||
await getModuleProgressLight('deleteBrand', [2], { force: true })
|
||||
await getModuleProgressLight('queryAsin', [2], { force: true })
|
||||
assert.equal(calls[0].url, '/newApi/api/appearance-patent/tasks/progress/light')
|
||||
assert.equal(calls[0].method, 'POST')
|
||||
assert.deepEqual(calls[0].data, { taskIds: [1] })
|
||||
assert.equal(calls[1].url, '/newApi/api/delete-brand/tasks/progress/light')
|
||||
assert.equal(calls[1].url, '/newApi/api/query-asin/tasks/progress/light')
|
||||
assert.deepEqual(calls[1].data, { taskIds: [2] })
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user