test: complete phase4 PDA shipping prerequisites

This commit is contained in:
2026-08-25 15:27:26 +08:00
parent fa92936406
commit 1f6f1a0677
6 changed files with 177 additions and 22 deletions
@@ -55,6 +55,18 @@ test('PDA module covers the container-number receiving contract and excludes out
assert.match(source, /phase4OverseasPda\.customerId = id\(order\.customerId\)/)
assert.match(source, /现场库存查询只返回Token绑定仓且包含库存位置/)
assert.match(source, /作业历史包含本轮柜号收货动作且分页稳定/)
assert.match(source, /awaitProducerConsumption\(context, allProducers\)/)
assert.match(source, /last-leg\/orders\?page=1&size=200&containerNo=/)
assert.match(source, /跨区消费生成尾程订单/)
assert.match(source, /awaitPickupReadyCandidates\(context, primary\.token, producers, allProducers\)/)
assert.match(source, /missingPickupReady=/)
assert.match(source, /item\?\.shippingReady === false/)
assert.match(source, /!expectedSet\.has\(id\(item\?\.containerNo\)\)/)
assert.match(source, /unexpectedAwaiting=/)
assert.match(source, /missingPickupReady\.length === 0 && unexpectedAwaiting\.length === 0/)
assert.doesNotMatch(source, /shippingReady == null|shippingReady !== true/)
assert.match(source, /unexpectedHistorical=/)
assert.doesNotMatch(source, /awaitProducerCandidates/)
})
test('missing WAREHOUSE_PICKER overseas authority is a deployment blocker', async () => {