优化
This commit is contained in:
@@ -113,6 +113,13 @@ describe('DownloadCenterView', () => {
|
||||
expect(getPlatformExportTask).toHaveBeenCalledWith('9')
|
||||
expect(document.body.textContent).toContain('任务详情 · EXP9')
|
||||
expect(document.body.textContent).toContain('客户列表.xlsx')
|
||||
expect(document.querySelector('.el-drawer')).toBeNull()
|
||||
expect(document.querySelector('.el-dialog')).not.toBeNull()
|
||||
const detailDownload = [...document.querySelectorAll<HTMLButtonElement>('button')]
|
||||
.find((item) => item.textContent?.trim() === '下载文件')
|
||||
detailDownload?.click()
|
||||
await flushPromises()
|
||||
expect(downloadPlatformExportTask).toHaveBeenCalledWith('9')
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user