test: distinguish active and void overview photos

This commit is contained in:
2026-08-14 22:43:07 +08:00
parent 011c30cc09
commit 0c845874f4
2 changed files with 5 additions and 1 deletions
@@ -69,7 +69,7 @@ export async function run(context) {
`taskStatus=${overview.pda.taskStatus || 'missing'}, workflowStatus=${overview.pda.workflowStatus || 'missing'}, completed=${overview.pda.completedItemCount ?? 'missing'}/${overview.pda.itemCount ?? 'missing'}`, OPTIONS)
for (const [index, photo] of overview.pda.photos.entries()) {
context.assert(MODULE, `overview PDA 照片摘要 ${index + 1} 字段完整`, overviewResponse,
['evidenceId', 'fileId', 'status', 'downloadPath'].every((field) => photo[field] !== undefined),
['evidenceId', 'fileId', 'status'].every((field) => photo[field] !== undefined),
`fileId=${id(photo.fileId)}`, OPTIONS)
const downloadPath = String(photo.downloadPath || '')
if (photo.status === 'VOID') {