fix(firstleg): price dropship before preload confirmation

This commit is contained in:
2026-09-09 03:11:41 +08:00
parent c5862db98d
commit bf89a04883
7 changed files with 31 additions and 10 deletions
@@ -8,15 +8,16 @@ import { normalizeModuleOrder } from '../admin-test-env-acceptance.mjs'
const source = readFileSync(new URL('./phase3-container-documents.mjs', import.meta.url), 'utf8')
const entry = readFileSync(new URL('../admin-test-env-acceptance.mjs', import.meta.url), 'utf8')
test('three generic container documents are frozen and customs stays on customs-v1', () => {
test('destination clearance and delivery order documents are frozen while pickup uses the cabinet code', () => {
assert.deepEqual(DOCUMENT_TYPES, [
'DESTINATION_CLEARANCE', 'DELIVERY_ORDER', 'PICKUP_ORDER',
'DESTINATION_CLEARANCE', 'DELIVERY_ORDER',
])
for (const token of [
'/clearance/document/upload', '/clearance/complete',
'/documents/${type}/upload', '/overview', 'requestMultipart', 'Idempotency-Key',
]) assert.ok(source.includes(token), token)
assert.doesNotMatch(source, /customs\/document|CUSTOMS_DECLARATION/)
assert.doesNotMatch(source, /PICKUP_ORDER/)
assert.doesNotMatch(source, /\/internal\/|https?:\/\/|process\.env|\bfetch\s*\(/)
})