import test from 'node:test' import assert from 'node:assert/strict' import { readSource } from './helpers.ts' import { imageVideoDownloadFilename, isTerminalStatus, videoKeysOf } from '../src/pages/tasks/image-video-view.ts' // module 13 task 264:视频任务视图改“任务卡片网格”+ 播放 + 单卡下载 + 复制链接 + 空态 + 合计。 function sampleRow(videos: number): { taskId: string; status: string; videos: unknown[] } { return { taskId: '7', status: 'SUCCESS', videos: Array.from({ length: videos }, () => ({ displayUrl: 'https://x/v.mp4' })) } } test('test_task_264_view_normal_primary_path', () => { const page = readSource('src/pages/tasks/ImageVideoTasksPage.vue') assert.match(page, /task-card-grid/, '需为任务卡片网格') assert.match(page, /