test(firstleg): scope loading evidence by cabinet

This commit is contained in:
2026-09-01 14:37:02 +08:00
parent 2ccfc38cdf
commit 105660bd09
2 changed files with 19 additions and 7 deletions
@@ -52,6 +52,17 @@ test('default fixture publishes a second marker-owned inbound for the same-plan
})
test('HTTP chain refreshes after stale inventory and keeps one stable PDA identity', () => {
assert.match(loading,
/async function uploadEvidence\(context, containerBookingId, evidenceType\)/)
assert.match(loading,
/files\/loading-evidence\/\$\{containerBookingId\}\?evidenceType=/)
assert.match(loading,
/files\/loading-evidence\/\$\{containerBookingId\}\/\$\{fileId\}/)
assert.equal((loading.match(/uploadEvidence\(context, containerBookingId,/g) || []).length, 5)
assert.doesNotMatch(loading,
/files\/loading-evidence\/\$\{tenantId\}\/\$\{inboundId\}/)
assert.doesNotMatch(loading,
/uploadEvidence\(context, tenantId, inboundId,/)
ordered(loading, [
'创建三期 DRAFT 订舱(不生成真实柜)',
'三期 DRAFT 订舱返回稳定身份和初始版本',