优化
This commit is contained in:
@@ -5,6 +5,16 @@ import { normalizeModuleOrder } from '../admin-test-env-acceptance.mjs'
|
||||
import { sameOutboundTask } from './dropship-pallet-matrix.mjs'
|
||||
import { probePartialPick } from './dropship-outbound-edge-cases.mjs'
|
||||
|
||||
test('browser fixture is explicit and stops before overseas receipt or outbound', () => {
|
||||
assert.deepEqual(normalizeModuleOrder(['dropship-browser-fixture']), ['merchant-qualification-fixture', 'dropship-browser-fixture'])
|
||||
const source = readFileSync(new URL('dropship-pallet-matrix.mjs', import.meta.url), 'utf8')
|
||||
const branch = source.slice(source.indexOf('if (stopBeforeOverseasPda)'), source.indexOf("await verify(await prepare('SINGLE-MULTI'"))
|
||||
assert.match(branch, /prepare\('BROWSER-MULTI', 2\)/)
|
||||
assert.match(branch, /convertOverseas\(\[record\]\)/)
|
||||
assert.match(branch, /READY_FOR_BROWSER_RECEIVING'[\s\S]*return/)
|
||||
assert.doesNotMatch(branch, /receiveOverseas|outboundOverseas|createPicker/)
|
||||
})
|
||||
|
||||
test('partial-pick rejection stays failed; a changed snapshot aborts further picking', async () => {
|
||||
const failures = []
|
||||
const snapshot = { pallets: [{ pickedPackageCount: 0 }] }
|
||||
|
||||
Reference in New Issue
Block a user