优化
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user