feat: connect plan-level preload confirmation
This commit is contained in:
@@ -4,7 +4,6 @@ import {
|
||||
adjustSmartLoadingItem,
|
||||
assignSmartLoadingItem,
|
||||
completeLoading,
|
||||
confirmingPreload,
|
||||
deleteSmartLoadingItem,
|
||||
downloadEvidenceFile,
|
||||
getContainerBooking,
|
||||
@@ -62,15 +61,6 @@ describe('unified order workflow API contract', () => {
|
||||
await expect(getPreload('2', '8')).rejects.toThrow('无权限')
|
||||
})
|
||||
|
||||
it('supports the intermediate confirming preload action', async () => {
|
||||
vi.mocked(http.post).mockResolvedValue({ data: { mainStatus: 'WAIT_SPLIT', preloadPlan: null } })
|
||||
await confirmingPreload('2', '8', { expectedVersion: 1 })
|
||||
expect(http.post).toHaveBeenCalledWith(
|
||||
'/platform/v1/inbounds/8/preload/confirming', { expectedVersion: 1 },
|
||||
expect.objectContaining({ params: { tenantId: '2' } }),
|
||||
)
|
||||
})
|
||||
|
||||
it('uploads a real evidence file and voids evidence through audited endpoints', async () => {
|
||||
vi.mocked(http.post)
|
||||
.mockResolvedValueOnce({ data: { fileId: '88', fileName: 'empty.jpg' } })
|
||||
|
||||
Reference in New Issue
Block a user