fix: 补齐签名导入待审通知并展示通道组成本
This commit is contained in:
@@ -118,6 +118,8 @@ describe('ReportMaterialImportModal mapping profile action', () => {
|
||||
});
|
||||
const user = userEvent.setup();
|
||||
const onCompleted = vi.fn();
|
||||
const refresh = vi.fn();
|
||||
window.addEventListener('cmpp-audit-count-refresh', refresh);
|
||||
render(<ReportMaterialImportModal onClose={vi.fn()} onCompleted={onCompleted} />);
|
||||
await waitFor(() => expect(adminApi.listTenantOptions).toHaveBeenCalledTimes(1));
|
||||
await user.click(screen.getByText('所属企业').closest('label')!.querySelector('button')!);
|
||||
@@ -146,5 +148,7 @@ describe('ReportMaterialImportModal mapping profile action', () => {
|
||||
),
|
||||
);
|
||||
expect(onCompleted).toHaveBeenCalledWith(expect.objectContaining({ id: 'analysis-1', status: 'pending_review' }));
|
||||
expect(refresh).toHaveBeenCalledTimes(1);
|
||||
window.removeEventListener('cmpp-audit-count-refresh', refresh);
|
||||
}, 10_000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user