test: preserve dropship producer fixture type
This commit is contained in:
@@ -880,6 +880,7 @@ export class AcceptanceRun {
|
|||||||
orderId: fixture.orderId || this.createdResources.orders?.orderId,
|
orderId: fixture.orderId || this.createdResources.orders?.orderId,
|
||||||
inboundId: fixture.inboundId,
|
inboundId: fixture.inboundId,
|
||||||
boxCode: fixture.boxCode,
|
boxCode: fixture.boxCode,
|
||||||
|
fulfillmentType: fixtureOrder.fulfillmentType || 'STANDARD',
|
||||||
customerRemark: fixtureOrder.customerRemark,
|
customerRemark: fixtureOrder.customerRemark,
|
||||||
internalRemark: fixtureOrder.internalRemark,
|
internalRemark: fixtureOrder.internalRemark,
|
||||||
cargoRemark: fixtureOrder.cargoRemark,
|
cargoRemark: fixtureOrder.cargoRemark,
|
||||||
@@ -899,6 +900,7 @@ export class AcceptanceRun {
|
|||||||
orderId: incrementalSource.orderId,
|
orderId: incrementalSource.orderId,
|
||||||
inboundId: incrementalSource.inboundId,
|
inboundId: incrementalSource.inboundId,
|
||||||
boxCode: incrementalSource.boxCode,
|
boxCode: incrementalSource.boxCode,
|
||||||
|
fulfillmentType: this.createdResources.orders?.fulfillmentType || 'STANDARD',
|
||||||
} : { marker: originalMarker, failed: true }
|
} : { marker: originalMarker, failed: true }
|
||||||
this.createdResources.orchestrationFixtures = {
|
this.createdResources.orchestrationFixtures = {
|
||||||
...(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')
|
const entry = read('../admin-test-env-acceptance.mjs')
|
||||||
assert.match(entry, /runPhase4ProducerVariant\('DROPSHIP-PRIMARY', 'FBA', 'ONE_CLICK_DROPSHIP'\)/)
|
assert.match(entry, /runPhase4ProducerVariant\('DROPSHIP-PRIMARY', 'FBA', 'ONE_CLICK_DROPSHIP'\)/)
|
||||||
assert.match(entry, /orderFulfillmentType/)
|
assert.match(entry, /orderFulfillmentType/)
|
||||||
|
assert.match(entry, /fulfillmentType: fixtureOrder\.fulfillmentType \|\| 'STANDARD'/)
|
||||||
const pda = read('phase4-overseas-pda.mjs')
|
const pda = read('phase4-overseas-pda.mjs')
|
||||||
assert.match(pda, /find\(\(item\) => item\?\.fulfillmentType === 'ONE_CLICK_DROPSHIP'\)/)
|
assert.match(pda, /find\(\(item\) => item\?\.fulfillmentType === 'ONE_CLICK_DROPSHIP'\)/)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user