test(acceptance): reuse fixed customers and align native fulfillment flows

This commit is contained in:
2026-10-23 04:48:02 +08:00
parent b92f7fe991
commit 139f6b1932
51 changed files with 1076 additions and 228 deletions
@@ -53,6 +53,7 @@ export async function allocateWarehouseTransfer(context, { proof, merchantToken,
const positions = await request('GET', `${PLATFORM}/inventory/balances/${encodeURIComponent(candidate.inventoryBalanceId)}/positions${scope}`)
check('库存位置回查必须返回完整数组', Array.isArray(positions))
position = positions.find(p => id(p.customerId) === proof.customerId && id(p.overseasWarehouseId) === proof.warehouseId
&& (!proof.requiredSourcePositionId || id(p.id) === proof.requiredSourcePositionId)
&& p.inboundCode === proof.inboundCode && id(p.inboundOrderId) === id(candidate.inboundOrderId)
&& id(p.balanceId) === id(candidate.inventoryBalanceId)
&& validId(p.id) && validId(p.palletId) && Number(p.availablePackages) >= 1