test(fba): preserve verified fleet and fulfillment acceptance workflows

This commit is contained in:
2026-10-03 06:26:33 +08:00
parent c55bd7f4b6
commit d858357c5d
52 changed files with 4217 additions and 103 deletions
@@ -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
}