fix(acceptance): enforce immutable confirmed fees

This commit is contained in:
2026-09-10 21:18:52 +08:00
parent 7b35373da3
commit 800ebb875f
14 changed files with 116 additions and 53 deletions
@@ -106,6 +106,14 @@ test('booking freezes the source customer channel and warehouse scope', () => {
assert.match(source, /containerType: '40HC', capacityCbm: 76, maxWeightKg: 28000/)
})
test('split chain starts from the partial inbound and derives quantities from the real tree', () => {
assert.match(source, /fixture\?\.incrementalInboundId \|\| fixture\?\.inboundId/)
assert.match(source, /const originalPackageCount = Number\(firstTree\?\.originalPackageCount\)/)
assert.match(source, /while \(activeRemainders\(tree\)\.length > 0\)/)
assert.match(source, /sourcePackageCount = Number\(source\?\.packageCount\)/)
assert.doesNotMatch(source, /snapshotMatches\(firstTree, 4, 1, 3, 1\)/)
})
test('booking fixture never invents supplier names without formal IDs', () => {
assert.match(source, /oceanBookingDraft/)
assert.doesNotMatch(source, /SPLIT-SHIPPING|SPLIT-AGENT/)