This commit is contained in:
2026-09-15 09:58:15 +08:00
parent 3f998bdb88
commit 4bf66d9571
90 changed files with 1599 additions and 1388 deletions
@@ -16,6 +16,12 @@ describe('showExportTaskCreatedDialog', () => {
)
})
it.each([false, true])('opts into the shared dialog style explicitly: %s', async (dense) => {
const confirm = vi.spyOn(ElMessageBox, 'confirm').mockResolvedValue({} as never)
await showExportTaskCreatedDialog({ taskName: '财务导出', dense })
expect(confirm).toHaveBeenCalledWith(expect.any(String), '导出任务已创建', expect.objectContaining({ customClass: dense ? 'admin-density-confirm' : undefined }))
})
it('keeps the user on the current page when the dialog is dismissed', async () => {
vi.spyOn(ElMessageBox, 'confirm').mockRejectedValue('cancel')