This commit is contained in:
2026-09-14 20:20:57 +08:00
parent ebc299d58a
commit 6dbcb2128c
5 changed files with 101 additions and 8 deletions
@@ -5,6 +5,15 @@ import { normalizeModuleOrder } from '../admin-test-env-acceptance.mjs'
const source = readFileSync(new URL('./dropship-pallet-matrix.mjs', import.meta.url), 'utf8')
test('dedicated outbound uses exact source cartons and verifies completion and stock deduction', () => {
assert.match(source, /await outboundOverseas\(group, picker.token\)/)
assert.match(source, /one-click-dropship\?customerId=/)
assert.match(source, /position.inboundCode === candidate.inboundCode/)
assert.match(source, /cartonMarks: inputs\[index\].cartonMarks/)
assert.match(source, /outbound.outbound\?\.status === 'OUTBOUNDED'/)
assert.match(source, /!remaining.some/)
})
test('dropship matrix has a real customer prerequisite without generic dispatch fixtures', () => {
const modules = normalizeModuleOrder(['dropship-pallet-matrix'])
assert.ok(modules.includes('merchant-qualification-fixture'))