提交一次全量代码
This commit is contained in:
1 parent
855396e553
commit
9fa608f602
58 files changed
+8439
-116
No files matched your search
@@ -259,13 +259,15 @@ describe('ReservationTaskDetailPanel', () => {
|
||||
vi.mocked(service.saveReservationTaskDraft).mockResolvedValue(createMutationResult())
|
||||
|
||||
const wrapper = await mountPanel()
|
||||
expect(wrapper.text()).toContain('TASK_LOADED')
|
||||
expect(wrapper.text()).toContain('任务读取')
|
||||
|
||||
await findButton(wrapper, '保存草稿').trigger('click')
|
||||
await flushPromises()
|
||||
|
||||
expect(service.fetchReservationTaskAudits).toHaveBeenCalledTimes(2)
|
||||
expect(wrapper.text()).toContain('DRAFT_SAVED')
|
||||
expect(wrapper.text()).toContain('草稿保存')
|
||||
expect(wrapper.text()).not.toContain('任务读取')
|
||||
expect(wrapper.text()).not.toContain('DRAFT_SAVED')
|
||||
expect(wrapper.text()).not.toContain('TASK_LOADED')
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user