test(fba): preserve verified fleet and fulfillment acceptance workflows
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { verifyReceivedOrderHold } from './phase4-tail-order-controls.mjs'
|
||||
import { verifyPdaWarehouseRevocation } from './unified-pda-session-revocation.mjs'
|
||||
|
||||
const MODULE = 'phase4-overseas-pda-operations'
|
||||
const SCENARIO = 'phase4-overseas-pda-p2-p5'
|
||||
@@ -802,12 +803,17 @@ export async function run(context) {
|
||||
await verifyInventoryMove(context, token, fixture)
|
||||
await verifyPalletOperations(context, token, fixture)
|
||||
await verifyRelabel(context, token, merchantToken, fixture)
|
||||
await verifyPdaWarehouseRevocation(context, handoff.primary)
|
||||
} finally {
|
||||
try {
|
||||
if (typeof handoff?.cleanup === 'function') await handoff.cleanup()
|
||||
} finally {
|
||||
if (handoff?.primary) delete handoff.primary.token
|
||||
if (handoff?.secondary) delete handoff.secondary.token
|
||||
for (const picker of [handoff?.primary, handoff?.secondary]) if (picker) {
|
||||
delete picker.token
|
||||
delete picker.refreshToken
|
||||
delete picker.password
|
||||
delete picker.userUpdate
|
||||
}
|
||||
if (handoff) delete handoff.merchantToken
|
||||
delete context.context.phase4OverseasPdaOperations
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user