This commit is contained in:
2026-09-15 13:36:58 +08:00
parent 1bb69698de
commit f9649c44e9
44 changed files with 647 additions and 63 deletions
@@ -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 }] }