test: pick complete dropship pallet fixtures

This commit is contained in:
2026-09-01 23:47:18 +08:00
parent fa7a7b8630
commit 571a5544a3
2 changed files with 2 additions and 1 deletions
@@ -571,7 +571,7 @@ export async function run(context) {
expectedVersion: Number(claimed?.version),
inventorySnapshotToken: inventory.snapshotToken,
items: [{
itemId: id(canonicalItem.id), action: 'PICK', pickedPackageCount: 1,
itemId: id(canonicalItem.id), action: 'PICK', pickedPackageCount: initialAssignmentCount,
releaseMode: 'MANUAL', locationIds: [], version: Number(canonicalItem.version),
}],
}
@@ -88,6 +88,7 @@ test('measurement and loading pass destination identity into the LOADED producer
assert.match(entry, /skuCodes: Array\.isArray\(fixtureOrder\.skuCodes\) \? fixtureOrder\.skuCodes : \[\]/)
assert.match(entry, /skuLines: Array\.isArray\(fixtureOrder\.skuLines\) \? fixtureOrder\.skuLines : \[\]/)
const pda = read('phase4-overseas-pda.mjs')
assert.match(loading, /pickedPackageCount: initialAssignmentCount/)
assert.match(pda, /find\(\(item\) => item\?\.fulfillmentType === 'ONE_CLICK_DROPSHIP'\)/)
assert.match(pda, /resolveCartonFixtures\(context, token, current\.data\.inbounds, producerCartonMarks\)/)
assert.match(pda, /FBA与OVERSEAS箱码resolve均为纯查询且零状态写入/)