fix: 补齐签名导入待审通知并展示通道组成本

This commit is contained in:
hectorzhao
2026-09-05 21:22:18 +08:00
parent 15a1f9d8ed
commit 839dba8d9b
13 changed files with 103 additions and 6 deletions
@@ -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);
});