From 4f27e33daf0facfca9648fba9a33a2754083cb0a Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Fri, 11 Sep 2026 01:20:21 +0800 Subject: [PATCH] test: align booking channel group contract --- .../ocean-booking-channel-contract.test.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/admin-test-env-modules/ocean-booking-channel-contract.test.mjs b/scripts/admin-test-env-modules/ocean-booking-channel-contract.test.mjs index a85575731..35be99334 100644 --- a/scripts/admin-test-env-modules/ocean-booking-channel-contract.test.mjs +++ b/scripts/admin-test-env-modules/ocean-booking-channel-contract.test.mjs @@ -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/) })