优化
This commit is contained in:
@@ -321,7 +321,7 @@ describe('fee source and statement native dialogs', () => {
|
||||
const prompt = vi.spyOn(ElMessageBox, 'prompt').mockResolvedValue(Object.assign('confirm', { value: '测试原因', action: 'confirm' as const }))
|
||||
const { wrapper } = await mountPage('statements')
|
||||
await rowClick(wrapper, label)
|
||||
expect(prompt).toHaveBeenCalledWith('请输入操作原因', expect.stringContaining(statement.billNo), expect.objectContaining({ customClass: 'admin-density-confirm', inputPattern: /\S+/ }))
|
||||
expect(prompt).toHaveBeenCalledWith('请输入操作原因', expect.stringContaining(statement.billNo), expect.objectContaining({ customClass: 'admin-density-confirm admin-workbench', inputPattern: /\S+/ }))
|
||||
expect(api.actionReconciliationStatement).toHaveBeenCalledWith(statement.id, { action, reason: '测试原因', expectedVersion: 3 })
|
||||
})
|
||||
it('does not change statement state when its reason prompt is cancelled', async () => {
|
||||
|
||||
Reference in New Issue
Block a user