fix(acceptance): preserve calculated dropship fees
This commit is contained in:
@@ -1470,7 +1470,7 @@ export class AcceptanceRun {
|
||||
const variantMarker = `${matrixMarker}-P4-${label}`
|
||||
const contextKeys = ['orderDestinationType', 'orderFulfillmentType', 'phase4ProducerMatrixMarker']
|
||||
const createdKeys = [
|
||||
'phase3Loading', 'phase3LoadingCompletedProducer', 'phase3ContainerDocuments', 'orchestrationFixtures', 'inboundFees', 'oceanBooking',
|
||||
'phase3Loading', 'phase3LoadingCompletedProducer', 'phase3ContainerDocuments', 'orchestrationFixtures', 'oceanBooking',
|
||||
'phase3CustomsSupplier', 'phase3Customs', 'serviceCenterFlow', 'portSchedule',
|
||||
'phase3OutboundDispatch', 'phase3CarrierScheduleQuery', 'phase4CarrierPickupReady',
|
||||
]
|
||||
@@ -1496,14 +1496,10 @@ export class AcceptanceRun {
|
||||
// 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 inboundFees = await import(new URL('./admin-test-env-modules/inbound-fees.mjs', import.meta.url))
|
||||
await inboundFees.ensureInitialCalculated(this,
|
||||
this.createdResources.orchestrationFixtures?.phase3Loading,
|
||||
{ scenario: `phase4-${label}-initial-fee`, deploymentBlocker: true })
|
||||
}
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user