test: align overseas PDA group receipt semantics

This commit is contained in:
2026-09-11 00:24:35 +08:00
parent 2bd12f8a5f
commit 9abb0004dd
4 changed files with 44 additions and 20 deletions
@@ -107,10 +107,12 @@ test('PDA module covers the container-number receiving contract and excludes out
assert.match(source, /安全投影已收敛/)
assert.match(source, /projectionReady = success\(projectionResponse\) \|\| notFound\(projectionResponse\)/)
assert.match(source, /setTimeout\(resolve, 500\)/)
assert.match(source, /超收被拒绝/)
assert.match(source, /重复累计不产生超收/)
assert.match(source, /重复箱新键被拒绝/)
assert.match(source, /key\(context, `fba-bulk-\$\{index\}`\)/)
assert.match(source, /packageCount = Number\(inbound\.pendingPackages \|\| 0\)/)
assert.match(source, /inbounds\.reduce\(\(total, inbound\) => total \+ Number\(inbound\.totalPackages \|\| 0\), 0\)/)
assert.match(source, /resolvedInboundCodes\.includes\(scannedInboundCode\)/)
assert.match(source, /duplicate\.data\?\.result === 'ALREADY_RECEIVED'/)
assert.match(source, /if \(packageCount <= 0\) return true/)
assert.match(source, /key\(context, `overseas-carton-\$\{index\}`\)/)
assert.match(source, /模式硬拒绝/)