test: align booking channel group contract

This commit is contained in:
2026-09-11 01:20:21 +08:00
parent 3209b2e647
commit 4f27e33daf
@@ -37,12 +37,15 @@ 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('released requirement association locks the selected channel onto the simulation', () => {
test('released requirement association locks the selected channel group onto the simulation', () => {
const fixture = source(new URL('./phase3-container-loading.mjs', import.meta.url))
assert.match(fixture, /ocean-booking-link/)
assert.match(fixture, /订舱放舱为 RELEASED 且不预生成真实货柜/)
assert.match(fixture, /oceanBookingId: bookingId, requirementId: id\(requirement\.id\), containerNo: realContainerNo/)
assert.match(fixture, /containerDetail\?\.channelCode === channelCode/)
assert.match(fixture, /simulation\?\.channelGroupCode === channelGroup\(channelCode\)/)
assert.match(fixture, /simulation\?\.channelCode == null/)
assert.match(fixture, /containerDetail\?\.channelGroupCode === channelGroup\(channelCode\)/)
assert.match(fixture, /containerDetail\?\.channelCode == null/)
assert.match(fixture, /selectPlatformChannelIsolationPair/)
assert.doesNotMatch(fixture, /\$\{channelCode\}-OTHER|foreignChannelCode/)
})