fix(admin): simplify gray release warehouse workflows
This commit is contained in:
@@ -68,7 +68,7 @@ describe('original container schedule', () => {
|
||||
wrapper.unmount()
|
||||
})
|
||||
it('missing original ownership blocks initialization and late read cannot populate another container', async () => {
|
||||
const first = setup({ ...container, currentPortScheduleId: '', oceanBookingId: '' }); await first.vm.begin(); expect(getPortSchedule).not.toHaveBeenCalled(); expect(first.wrapper.text()).toContain('不能维护船期'); first.wrapper.unmount()
|
||||
const first = setup({ ...container, currentPortScheduleId: '', oceanBookingId: '' }); await first.vm.begin(); expect(getPortSchedule).not.toHaveBeenCalled(); expect(first.wrapper.text()).not.toContain('不能维护船期'); expect(first.wrapper.find('button').attributes('disabled')).toBeDefined(); first.wrapper.unmount()
|
||||
let resolve!: (value: ReturnType<typeof result>) => void
|
||||
vi.mocked(getPortSchedule).mockReturnValue(new Promise(done => { resolve = done }))
|
||||
const { wrapper, vm } = setup(); const pending = vm.begin()
|
||||
|
||||
Reference in New Issue
Block a user