优化
This commit is contained in:
@@ -44,3 +44,20 @@ test('test-environment full acceptance executes warehouse-scoped booking channel
|
||||
assert.match(fixture, /\/api\/platform\/v1\/ocean-bookings\/channels/)
|
||||
assert.match(fixture, /createdResources\.platformLogisticsChannels/)
|
||||
})
|
||||
|
||||
test('test-environment full acceptance keeps assigned and unassigned customer booking chains', () => {
|
||||
const loadingIndex = adminAcceptance.indexOf("'phase3-container-loading'")
|
||||
const bookingIndex = adminAcceptance.indexOf("'ocean-bookings'")
|
||||
assert.ok(loadingIndex >= 0 && bookingIndex > loadingIndex,
|
||||
'ocean-bookings must run after the assigned-customer container fixture')
|
||||
|
||||
const bookingModule = readFileSync(resolve(scriptsDir, 'admin-test-env-modules', 'ocean-bookings.mjs'), 'utf8')
|
||||
assert.match(bookingModule, /oceanBookingDraftWithoutCustomer/)
|
||||
assert.match(bookingModule, /createdResources\.oceanBookingUnassignedCustomer/)
|
||||
assert.match(bookingModule, /customerId == null[\s\S]*customerName == null/)
|
||||
assert.match(bookingModule, /status === 'CONFIRMED'[\s\S]*containerBookingId/)
|
||||
assert.match(bookingModule, /keyword=\$\{encodeURIComponent\(bookingNo\)\}/)
|
||||
assert.doesNotMatch(bookingModule, /keyword=\$\{encodeURIComponent\(context\.marker\)\}/)
|
||||
assert.match(bookingModule, /指定客户订舱持久化本轮客户范围快照/)
|
||||
assert.match(bookingModule, /phase3Loading[\s\S]*phase3ContainerLoading/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user