test(acceptance): align automatic preload workflows
This commit is contained in:
@@ -23,7 +23,7 @@ test('each remainder uses a simulation linked to a released booking requirement'
|
||||
assert.match(source, /oceanBooking\?\.status === 'RELEASED' && releasedAllocationMatches/)
|
||||
assert.match(source, /id\(item\?\.containerBookingId\) === containerId/)
|
||||
assert.match(source, /candidates\?bookingId=\$\{encodeURIComponent\(containerId\)\}&warehouseId=\$\{encodeURIComponent\(warehouseId\)\}/)
|
||||
assert.match(source, /`\$\{SMART\}\/plans`, \{ bookingId: containerId/)
|
||||
assert.match(source, /`\$\{SMART\}\/plans\/by-booking\/\$\{containerId\}`/)
|
||||
assert.doesNotMatch(source, /candidates\?warehouseId=/)
|
||||
})
|
||||
|
||||
@@ -37,7 +37,7 @@ test('release freezes and detail replays the same complete transport snapshot',
|
||||
})
|
||||
|
||||
test('PDA opens only after linking a released requirement and uses stable plan identity', () => {
|
||||
const pushIndex = source.indexOf("`${SMART}/plans/${planId}/push-preload`")
|
||||
const pushIndex = source.indexOf("`${SMART}/plans/${planId}`")
|
||||
const linkIndex = source.indexOf("`${CONTAINERS}/${containerId}/ocean-booking-link`")
|
||||
const releaseIndex = source.indexOf("`/api/platform/v1/ocean-bookings/${oceanBookingId}/release`")
|
||||
const confirmIndex = source.indexOf("`/api/platform/v1/first-leg/loading-plans/${encodeURIComponent(planId)}/confirm`")
|
||||
@@ -60,6 +60,7 @@ test('PDA opens only after linking a released requirement and uses stable plan i
|
||||
assert.match(source, /id\(task\?\.loadingPlanId\) === planId/)
|
||||
assert.match(source, /id\(task\?\.containerBookingId\) === containerId/)
|
||||
assert.doesNotMatch(source, /\$\{PDA\}\/tasks\?containerNo=/)
|
||||
assert.doesNotMatch(source, /push-preload/)
|
||||
})
|
||||
|
||||
test('each remainder settles only through inventory snapshot, atomic batch and explicit complete', () => {
|
||||
|
||||
Reference in New Issue
Block a user