test(firstleg): cover simulated container booking links

This commit is contained in:
2026-08-14 21:00:20 +08:00
parent 7184f5083a
commit a4a4374c67
14 changed files with 318 additions and 81 deletions
@@ -38,9 +38,10 @@ test('backend OpenAPI freezes a platform channel query scoped by originWarehouse
'BLOCKED_CONTRACT: platform logistics-channel query by originWarehouseId is not frozen in OpenAPI')
})
test('container confirmation acceptance locks the selected channel onto the generated container', () => {
test('explicit real booking association locks the selected channel onto the simulation', () => {
const fixture = source(new URL('./phase3-container-loading.mjs', import.meta.url))
assert.match(fixture, /containerAllocations\?\.\[0\]/)
assert.match(fixture, /ocean-booking-link/)
assert.match(fixture, /CONFIRMED 只产生真实订舱事实且尚未占用模拟柜/)
assert.match(fixture, /containerDetail\?\.channelCode === channelCode/)
assert.match(fixture, /selectPlatformChannelIsolationPair/)
assert.doesNotMatch(fixture, /\$\{channelCode\}-OTHER|foreignChannelCode/)