fix(admin): simplify gray release warehouse workflows

This commit is contained in:
2026-10-26 15:51:07 +08:00
parent 9de72cbc5c
commit cc02f4d907
12 changed files with 181 additions and 154 deletions
@@ -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()