fix(test): assign authenticated PDA operator in pallet matrix

This commit is contained in:
2026-09-30 12:22:47 +08:00
parent 4a14001a09
commit 2f0b202590
2 changed files with 13 additions and 1 deletions
@@ -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 }]