1
This commit is contained in:
@@ -24,6 +24,11 @@ describe('OceanBookingDetailView draft and release contract', () => {
|
||||
expect(source).not.toContain('cancelOceanBooking')
|
||||
})
|
||||
|
||||
it('invalidates the cached booking list after deleting a draft', () => {
|
||||
expect(source).toContain("workspace.bumpCacheEpoch('ocean-bookings')")
|
||||
expect(source).toContain("await router.replace('/ocean-bookings')")
|
||||
})
|
||||
|
||||
it('saves incomplete DRAFT data and sends null for blank nullable fields', () => {
|
||||
expect(source).toContain('保存草稿')
|
||||
expect(source).toContain('channelCode: form.data.channelCode?.trim() || null')
|
||||
|
||||
Reference in New Issue
Block a user