This commit is contained in:
2026-08-17 16:07:20 +08:00
parent 68d9216cb8
commit 75580c3585
9 changed files with 249 additions and 78 deletions
@@ -102,7 +102,7 @@ test('test-environment loading chains push without a number and open PDA only af
assert.doesNotMatch(containerLoading, /\/preload\/confirming|\/preload\/confirm\?tenantId=/)
})
test('default Admin HTTP entry carries evidence chain but fail-closes before obsolete truck completion semantics', () => {
test('default Admin HTTP entry carries evidence chain through settlement-aware PDA completion', () => {
const focused = normalizeModuleOrder([
'merchant-qualification-fixture', 'orders', 'inbound-measurement',
'phase3-container-loading', 'phase3-loading', 'phase3-container-overview',
@@ -130,9 +130,11 @@ test('default Admin HTTP entry carries evidence chain but fail-closes before obs
assert.match(evidenceGate, /taskId[\s\S]*inboundId[\s\S]*loadingPlanId[\s\S]*containerBookingId/)
assert.match(customs, /createdResources\?\.phase3Loading[\s\S]*container\?\.finalStatus/)
assert.match(finalize, /fixture\?\.marker !== context\.marker/)
assert.match(finalize, /BLOCKED_CONTRACT:用户已确认拖车缺失或未完成不再阻断/)
assert.ok(finalize.indexOf('PDA complete 联动拖车并原子推进 LOADED')
< finalize.indexOf('const taskPath ='))
assert.doesNotMatch(finalize, /BLOCKED_CONTRACT/)
assert.ok(finalize.indexOf('const taskPath =')
< finalize.indexOf('结算递增 inboundVersion 后 final complete 必须使用最新版本'))
assert.match(finalize, /结算或版本冲突失败后 task\/plan\/inbound\/operation 全部零写入/)
assert.match(finalize, /结算递增版本后实际完成分片唯一且柜次身份稳定/)
assert.doesNotMatch(finalize, /truck\?\.finalStatus === 'COMPLETED'/)
})