fix(firstleg): transfer carton labels to remainder inbound
This commit is contained in:
@@ -6,6 +6,7 @@ import { normalizeModuleOrder, parseArguments } from '../admin-test-env-acceptan
|
||||
|
||||
const entry = readFileSync(new URL('../admin-test-env-acceptance.mjs', import.meta.url), 'utf8')
|
||||
const source = readFileSync(new URL('./manual-state-matrix.mjs', import.meta.url), 'utf8')
|
||||
const loadingSource = readFileSync(new URL('./manual-state-loading-pda.mjs', import.meta.url), 'utf8')
|
||||
|
||||
test('default full acceptance includes the retained manual state matrix after lifecycle modules', () => {
|
||||
assert.match(entry, /'manual-state-matrix'/)
|
||||
@@ -19,8 +20,8 @@ test('focused matrix execution injects real container lifecycle prerequisites an
|
||||
'phase3-container-loading',
|
||||
'phase3-loading',
|
||||
'ocean-bookings',
|
||||
'phase3-customs',
|
||||
'phase3-loading-finalize',
|
||||
'phase3-customs',
|
||||
'manual-state-matrix',
|
||||
]
|
||||
assert.deepEqual(normalizeModuleOrder(['order-inbound-status-fixtures', 'manual-state-matrix']), expected)
|
||||
@@ -36,8 +37,8 @@ test('focused splitting and manual groups resolve producers before consumers wit
|
||||
'phase3-loading',
|
||||
'phase3-order-splitting',
|
||||
'ocean-bookings',
|
||||
'phase3-customs',
|
||||
'phase3-loading-finalize',
|
||||
'phase3-customs',
|
||||
'manual-state-matrix',
|
||||
]
|
||||
assert.deepEqual(normalizeModuleOrder([
|
||||
@@ -60,7 +61,7 @@ test('matrix delegates bounded groups and asserts every declared status has a re
|
||||
|
||||
test('fixture-unavailable statuses stay supported without becoming hard requirements', () => {
|
||||
const matrix = { pages: {
|
||||
inbounds: { requiredStatuses: ['WAIT_MEASURE', 'WAIT_PRICING', 'FEE_CONFIRMING', 'INBOUNDING', 'VOIDED'], fixtures: {
|
||||
inbounds: { requiredStatuses: ['WAIT_MEASURE', 'MEASURE_REJECTED', 'WAIT_PRICING', 'FEE_CONFIRMING', 'INBOUNDING', 'VOIDED'], fixtures: {
|
||||
WAIT_MEASURE: { id: '1' },
|
||||
} },
|
||||
unifiedOrders: { requiredStatuses: ['WAIT_SPLIT', 'LOADING', 'LOADED', 'DELIVERED'], fixtures: {
|
||||
@@ -71,7 +72,7 @@ test('fixture-unavailable statuses stay supported without becoming hard requirem
|
||||
normalizeStateRequirements(matrix)
|
||||
|
||||
assert.deepEqual(matrix.pages.inbounds.supportedStatuses,
|
||||
['WAIT_MEASURE', 'WAIT_PRICING', 'FEE_CONFIRMING', 'INBOUNDING', 'VOIDED'])
|
||||
['WAIT_MEASURE', 'MEASURE_REJECTED', 'WAIT_PRICING', 'FEE_CONFIRMING', 'INBOUNDING', 'VOIDED'])
|
||||
assert.deepEqual(matrix.pages.inbounds.requiredStatuses, ['WAIT_MEASURE'])
|
||||
assert.deepEqual(matrix.pages.unifiedOrders.requiredStatuses, ['WAIT_SPLIT', 'LOADING', 'LOADED'])
|
||||
assert.equal(matrix.pages.inbounds.coverageGaps.WAIT_PRICING.category, 'fixture-unavailable')
|
||||
@@ -93,7 +94,8 @@ test('unknown missing status is never swallowed by the known coverage-gap allowl
|
||||
})
|
||||
|
||||
test('LOADING and LOADED fixtures are resolved through inbound and unified-order details', () => {
|
||||
assert.match(source, /attachUnifiedOrderFixture\(context, matrix, 'phase3ContainerLoading', 'LOADING'\)/)
|
||||
assert.match(loadingSource, /matrix\.pages\.unifiedOrders\.fixtures\.LOADING/)
|
||||
assert.match(loadingSource, /loadingOrder\?\.summary\?\.mainStatus === 'LOADING'/)
|
||||
assert.match(source, /attachUnifiedOrderFixture\(context, matrix, 'phase3Loading', 'LOADED'\)/)
|
||||
assert.match(source, /\/api\/platform\/inbounds\/\$\{encodeURIComponent\(inboundId\)\}/)
|
||||
assert.match(source, /id\(inbound\?\.summary\?\.id\) === inboundId/)
|
||||
|
||||
Reference in New Issue
Block a user