test: preserve dropship producer fixture type

This commit is contained in:
2026-08-25 09:16:00 +08:00
parent 4839243f21
commit 29b2f080d8
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -880,6 +880,7 @@ export class AcceptanceRun {
orderId: fixture.orderId || this.createdResources.orders?.orderId,
inboundId: fixture.inboundId,
boxCode: fixture.boxCode,
fulfillmentType: fixtureOrder.fulfillmentType || 'STANDARD',
customerRemark: fixtureOrder.customerRemark,
internalRemark: fixtureOrder.internalRemark,
cargoRemark: fixtureOrder.cargoRemark,
@@ -899,6 +900,7 @@ export class AcceptanceRun {
orderId: incrementalSource.orderId,
inboundId: incrementalSource.inboundId,
boxCode: incrementalSource.boxCode,
fulfillmentType: this.createdResources.orders?.fulfillmentType || 'STANDARD',
} : { marker: originalMarker, failed: true }
this.createdResources.orchestrationFixtures = {
...(this.createdResources.orchestrationFixtures || {}),
@@ -77,6 +77,7 @@ test('measurement and loading pass destination identity into the LOADED producer
const entry = read('../admin-test-env-acceptance.mjs')
assert.match(entry, /runPhase4ProducerVariant\('DROPSHIP-PRIMARY', 'FBA', 'ONE_CLICK_DROPSHIP'\)/)
assert.match(entry, /orderFulfillmentType/)
assert.match(entry, /fulfillmentType: fixtureOrder\.fulfillmentType \|\| 'STANDARD'/)
const pda = read('phase4-overseas-pda.mjs')
assert.match(pda, /find\(\(item\) => item\?\.fulfillmentType === 'ONE_CLICK_DROPSHIP'\)/)
})