test: cover partial and concurrent pda completion
This commit is contained in:
@@ -471,6 +471,8 @@ test('phase3 loading resolves legal SKIP and PARTIAL exceptions before downstrea
|
||||
'未解决异常完成失败后 task/items/operation 全部零写入',
|
||||
'合法 PARTIAL 解决未完成明细',
|
||||
'部分拣货数量守恒并恢复最终可确认状态',
|
||||
'回查柜次 PDA 异常原因与已解决进度',
|
||||
'SKIP 异常原因持久化且 PARTIAL 后无未解决明细',
|
||||
'报关与最终完成前保持 LOADING 且不提前写 COMPLETE_LOADING',
|
||||
])
|
||||
assert.match(loading, /action: 'SKIP', version: Number\(skipTaskItem\?\.version\),\s*reason: skipReason/)
|
||||
@@ -481,6 +483,8 @@ test('phase3 loading resolves legal SKIP and PARTIAL exceptions before downstrea
|
||||
assert.match(loading, /String\(unresolvedComplete\.body\?\.message \|\| ''\)\.includes\('尚未处理'\)/)
|
||||
assert.match(loading, /taskItemsSignature\(afterUnresolvedCompleteTask\) === taskItemsSignature\(unresolvedTask\)/)
|
||||
assert.match(loading, /operationsSignature\(operationsAfterUnresolvedComplete\) === operationsSignature\(operationsBeforeUnresolvedComplete\)/)
|
||||
assert.match(loading, /exceptionOverview\?\.pda\?\.exceptionReasons\?\.includes\?\.\(skipReason\)/)
|
||||
assert.match(loading, /Number\(exceptionOverview\?\.pda\?\.unresolvedItemCount\) === 0/)
|
||||
assert.doesNotMatch(loading, /addCoverageGap\([^)]*(SKIP|PARTIAL|未解决异常)/)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user