fix(test): assign authenticated PDA operator in pallet matrix
This commit is contained in:
@@ -5,6 +5,13 @@ import { normalizeModuleOrder } from '../admin-test-env-acceptance.mjs'
|
||||
import { sameOutboundTask } from './dropship-pallet-matrix.mjs'
|
||||
import { receivingProgressMatches, outboundCandidateGuards, probePartialPick } from './dropship-outbound-edge-cases.mjs'
|
||||
|
||||
test('loading confirmation assigns the authenticated PDA operator from the target warehouse', () => {
|
||||
const source = readFileSync(new URL('./dropship-pallet-matrix.mjs', import.meta.url), 'utf8')
|
||||
assert.match(source, /domestic-pda-operators\?warehouseId=\$\{summary\.warehouseId\}/)
|
||||
assert.match(source, /selectSessionPdaOperator\(operators, context\.pdaToken\)/)
|
||||
assert.match(source, /assigneeId: String\(operator\.userId\)/)
|
||||
})
|
||||
|
||||
test('receiving verifier follows three independent inbound codes through interleaved progress', () => {
|
||||
const expected = [{ inboundCode: 'FBA', total: 5, received: 0 },
|
||||
{ inboundCode: 'DROPSHIP', total: 4, received: 0 }, { inboundCode: 'OVERSEAS', total: 3, received: 0 }]
|
||||
|
||||
Reference in New Issue
Block a user