This commit is contained in:
2026-08-17 15:55:17 +08:00
parent bab911028d
commit db43e3049a
3 changed files with 30 additions and 9 deletions
+7 -1
View File
@@ -62,7 +62,7 @@ test('picking page exposes five evidence slots, retry and remote completion stat
assert.match(page, /createEvidenceUploadQueue/)
assert.match(page, /retryEvidence/)
assert.match(page, /uploadEvidenceFile/)
assert.match(page, /submitting \|\| completedBoxes\[currentBoxIndex\]/)
assert.match(page, /submitting \|\| pickingCompleted \|\| !summary\.canSubmit/)
assert.match(page, /completePicking\(/)
assert.match(page, /sourceType: \['camera'\]/)
assert.doesNotMatch(page, /sourceType: \['camera', 'album'\]/)
@@ -126,3 +126,9 @@ test('PDA cabinet picking adapter claims online and submits one atomic batch', (
assert.match(page, /availablePickQuantity/)
assert.match(page, /库存\/库位可用量不足/)
})
test('PDA final completion delegates automatic cabinet side effects to the task complete endpoint', () => {
const complete = source.match(/export function completeContainerPickingTask\(taskId, payload = \{\}\) \{[\s\S]*?\n\}/)?.[0] || ''
assert.match(complete, /\/first-leg\/pda-loading\/tasks\/\$\{encodeURIComponent\(taskId\)\}\/complete/)
assert.doesNotMatch(complete, /拖车|trucking/i)
})