align(店铺数据记录): 改回每条任务一张卡片(店铺名头+任务号/状态+分组/最新/国家/文件行+下载文件/删除)、全选口径 file_ready&&有resultId 不再附加终态、空态文案对齐(对齐 admin.js renderShopDataRecordTable/syncShopDataSelectionUi)
This commit is contained in:
@@ -7,10 +7,12 @@ import { isTerminalStatus } from '../src/pages/tasks/image-video-view.ts'
|
||||
// module 13 task 266:店铺数据任务视图改“每店铺卡片”,单文件下载/删除真实端点。
|
||||
|
||||
test('test_task_266_view_normal_primary_path', () => {
|
||||
// 视图已改为「每条任务一张卡」(对齐 admin.js renderShopDataRecordTable)。
|
||||
const page = readSource('src/pages/tasks/ShopDataTasksPage.vue')
|
||||
assert.match(page, /shop-card-grid/, '需每店铺卡片网格')
|
||||
assert.match(page, /group\.results/, '卡片内遍历该店结果文件')
|
||||
assert.match(page, /暂无结果文件/, '店空态')
|
||||
assert.match(page, /shop-card-grid/, '需任务卡片网格')
|
||||
assert.match(page, /v-for="row in allResultRows"/, '逐任务渲染卡片')
|
||||
assert.match(page, /shop-card-task-no/, '卡片含任务号')
|
||||
assert.match(page, /暂无符合条件的店铺数据任务/, '空态文案')
|
||||
})
|
||||
|
||||
test('test_task_266_view_normal_variant_input', () => {
|
||||
@@ -34,7 +36,7 @@ test('test_task_266_view_boundary_empty_input', () => {
|
||||
test('test_task_266_view_boundary_single_item', () => {
|
||||
const page = readSource('src/pages/tasks/ShopDataTasksPage.vue')
|
||||
assert.match(page, /fileReady/, '未就绪禁下载')
|
||||
assert.match(page, /isTerminalStatus/, '终态门控下载/删除')
|
||||
assert.match(page, /isTerminalStatus/, '终态门控删除')
|
||||
assert.equal(isTerminalStatus('SUCCESS'), true)
|
||||
assert.equal(isTerminalStatus('RUNNING'), false)
|
||||
})
|
||||
@@ -54,5 +56,5 @@ test('test_task_266_delete_boundary_limit_or_missing_field', () => {
|
||||
test('test_task_266_dependency_failure_returns_actionable_message', () => {
|
||||
const page = readSource('src/pages/tasks/ShopDataTasksPage.vue')
|
||||
assert.equal(/<el-table[^>]*:data="(rows|allResultRows)"/.test(page), false, '结果文件不再用整表渲染')
|
||||
assert.match(page, /暂无店铺数据任务/, '空态文案')
|
||||
assert.match(page, /暂无符合条件的店铺数据任务/, '空态文案')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user