test: bind real containers before pda push

This commit is contained in:
2026-08-14 22:59:10 +08:00
parent 0c845874f4
commit b89f14217d
4 changed files with 29 additions and 16 deletions
@@ -16,8 +16,12 @@ test('retains all clickable container, loading-list and PDA workflow states thro
assert.match(source, /prepareInbound/)
assert.match(source, /\.\/orders\.mjs/)
assert.match(source, /\.\/inbound-measurement\.mjs/)
assert.doesNotMatch(source, /context\.request\('POST', CONTAINERS/)
assert.match(source, /context\.request\('POST', CONTAINERS/)
assert.match(source, /summary\?\.processStatus === 'WAIT_SPLIT'/)
const pushIndex = source.indexOf('`${SMART}/plans/${plan.id}/push-preload`')
const transportIndex = source.indexOf('`${CONTAINERS}/${containerId}/transport`')
assert.ok(transportIndex >= 0 && pushIndex > transportIndex)
assert.match(source, /transported\?\.cabinetNo !== container\?\.cabinetNo/)
const batch = source.slice(source.indexOf('async function pickAll'), source.indexOf('async function complete'))
assert.doesNotMatch(batch, /containerNo:/)
})