fix(acceptance): complete overseas fulfillment closure
This commit is contained in:
@@ -1387,6 +1387,8 @@ export class AcceptanceRun {
|
||||
internalRemark: fixtureOrder.internalRemark,
|
||||
cargoRemark: fixtureOrder.cargoRemark,
|
||||
taxMode: fixtureOrder.taxMode || null,
|
||||
finalStatus: fixture.finalStatus,
|
||||
processStatus: fixture.processStatus,
|
||||
requireInventoryMutation: requireSharedOverflow,
|
||||
} : { marker: originalMarker, sourceMarker: fixtureMarker, failed: true }
|
||||
const incrementalMarker = `${originalMarker}-LOAD${suffix}-INC`
|
||||
@@ -1468,7 +1470,7 @@ export class AcceptanceRun {
|
||||
const variantMarker = `${matrixMarker}-P4-${label}`
|
||||
const contextKeys = ['orderDestinationType', 'orderFulfillmentType', 'phase4ProducerMatrixMarker']
|
||||
const createdKeys = [
|
||||
'phase3Loading', 'phase3LoadingCompletedProducer', 'phase3ContainerDocuments', 'orchestrationFixtures', 'oceanBooking',
|
||||
'phase3Loading', 'phase3LoadingCompletedProducer', 'phase3ContainerDocuments', 'orchestrationFixtures', 'inboundFees', 'oceanBooking',
|
||||
'phase3CustomsSupplier', 'phase3Customs', 'serviceCenterFlow', 'portSchedule',
|
||||
'phase3OutboundDispatch', 'phase3CarrierScheduleQuery', 'phase4CarrierPickupReady',
|
||||
]
|
||||
@@ -1493,6 +1495,16 @@ export class AcceptanceRun {
|
||||
// run; repeating it for every producer is unsafe for a populated shared warehouse and can
|
||||
// become impossible when the bounded isolation guard refuses bulk location mutations.
|
||||
restoreFixture = await this.preparePhase3LoadingFixture('', false)
|
||||
if (fulfillmentType === 'ONE_CLICK_DROPSHIP') {
|
||||
const measuredFixture = this.createdResources.inboundMeasurement
|
||||
this.createdResources.inboundMeasurement = this.createdResources.orchestrationFixtures?.phase3Loading
|
||||
try {
|
||||
const inboundFees = await import(new URL('./admin-test-env-modules/inbound-fees.mjs', import.meta.url))
|
||||
await this.executeModule(`inbound-fees-phase4-${label}`, () => inboundFees.run(this))
|
||||
} finally {
|
||||
this.createdResources.inboundMeasurement = measuredFixture
|
||||
}
|
||||
}
|
||||
const loading = await import(new URL('./admin-test-env-modules/phase3-loading.mjs', import.meta.url))
|
||||
await this.executeModule(`phase3-loading-phase4-${label}`, () => loading.run(this))
|
||||
const finalize = await import(new URL('./admin-test-env-modules/phase3-loading-finalize.mjs', import.meta.url))
|
||||
|
||||
Reference in New Issue
Block a user