test: align outbound producer with container customs
This commit is contained in:
@@ -564,7 +564,8 @@ test('customs reuses the loading chain released booking without pre-completing t
|
||||
assertOrder(value, [
|
||||
'selectCustomsFlow(context.createdResources)',
|
||||
'if (!await ensureReleasedOceanBooking(context, container)) return',
|
||||
'const slicesPath =',
|
||||
'if (!await verifyContainerOperationalDocuments(context, containerBookingId))',
|
||||
'const customs = await completeContainerCustoms(context, loadingPlanId)',
|
||||
])
|
||||
assert.match(value, /const oceanBookingId = id\(container\?\.oceanBookingId\)/)
|
||||
assert.match(value, /ocean-bookings\/\$\{encodeURIComponent\(oceanBookingId\)\}/)
|
||||
@@ -572,11 +573,10 @@ test('customs reuses the loading chain released booking without pre-completing t
|
||||
assert.doesNotMatch(value, /oceanBookings\.run\(context\)/)
|
||||
assert.doesNotMatch(value, /serviceCenter\.run\(context\)/)
|
||||
assert.doesNotMatch(value, /truck\?\.finalStatus !== 'COMPLETED'/)
|
||||
assert.match(value, /request\('POST', '\/api\/platform\/v1\/suppliers\?tenantId=0'/)
|
||||
assert.match(value, /category: 'CUSTOMS'/)
|
||||
assert.match(value, /context\.createdResources\.phase3CustomsSupplier/)
|
||||
assert.match(value, /const batchPayload = \{ customsAgentId,/)
|
||||
assert.doesNotMatch(value, /customsAgentName: `代理-/)
|
||||
assert.match(value, /PLATFORM_CUSTOMS = '\/api\/platform\/v1\/customs\/loading-plans'/)
|
||||
assert.match(value, /complete-all-buy/)
|
||||
assert.match(value, /finalStatus: 'COMPLETED'/)
|
||||
assert.doesNotMatch(value, /checklist-versions|submission-batches|category: 'CUSTOMS'/)
|
||||
})
|
||||
|
||||
test('downstream container consumers prefer the phase3Loading fixture', () => {
|
||||
@@ -661,7 +661,8 @@ test('container fixture isolates order idempotency while publishing the run mark
|
||||
test('measurement fixture polls asynchronous completion before exporting loading identity', () => {
|
||||
const measurement = source('./inbound-measurement.mjs')
|
||||
assert.match(measurement, /waitForCompletedMeasurement/)
|
||||
assert.match(measurement, /measurement\?\.processStatus === 'WAIT_SPLIT'/)
|
||||
assert.match(measurement, /expectedStatuses\.includes\(measurement\?\.processStatus\)/)
|
||||
assert.match(measurement, /completeDropshipPalletization/)
|
||||
assert.match(measurement, /setTimeout\(resolve, 1_000\)/)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user