test: cover overseas pda warehouse operation lifecycles

This commit is contained in:
2026-08-25 11:25:13 +08:00
parent 042d0b738a
commit 68bdc3e6bb
6 changed files with 588 additions and 19 deletions
@@ -10,6 +10,7 @@ test('phase-four HTTP acceptance modules are registered in the Admin acceptance
for (const module of [
'phase4-overseas-warehouse',
'phase4-overseas-pda',
'phase4-overseas-pda-operations',
'phase4-overseas-inbound-operations',
'phase4-overseas-client-services',
'phase4-overseas-dispatch',
@@ -27,7 +28,7 @@ test('overseas inbound commands, client services and dispatch follow completed P
'phase4-overseas-dispatch']) {
const modules = parseArguments(['--modules', consumer]).modules
for (const prerequisite of ['merchant-qualification-fixture', 'phase3-loading',
'phase3-loading-finalize', 'phase4-overseas-pda']) {
'phase3-loading-finalize', 'phase4-overseas-pda', 'phase4-overseas-pda-operations']) {
assert.ok(modules.indexOf(prerequisite) >= 0
&& modules.indexOf(prerequisite) < modules.indexOf(consumer))
}
@@ -82,4 +83,5 @@ test('PDA entry expands the real phase-three producer chain and builds an FBA/OV
assert.match(source, /runPhase4ProducerVariant\('OVERSEAS-PRIMARY', 'OVERSEAS'\)/)
assert.match(source, /runPhase4ProducerVariant\('SECONDARY', 'FBA'\)/)
assert.match(source, /readyForPhase4Pda === true/)
assert.equal(modules.indexOf('phase4-overseas-pda-operations'), modules.indexOf('phase4-overseas-pda') + 1)
})