test: bind real containers before pda push
This commit is contained in:
@@ -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:/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user