test(admin): add regression test for skipped section hidden during RUNNING
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -179,4 +179,24 @@ describe('ImportStatusCard', () => {
|
|||||||
|
|
||||||
await expect.element(getByTestId('skipped-count')).not.toBeInTheDocument();
|
await expect.element(getByTestId('skipped-count')).not.toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('does not show skipped section when RUNNING even with skipped > 0', async () => {
|
||||||
|
const { getByTestId } = render(ImportStatusCard, {
|
||||||
|
props: {
|
||||||
|
importStatus: makeStatus({
|
||||||
|
state: 'RUNNING',
|
||||||
|
statusCode: 'IMPORT_RUNNING',
|
||||||
|
processed: 5,
|
||||||
|
skipped: 2,
|
||||||
|
skippedFiles: [
|
||||||
|
{ filename: 'a.pdf', reason: 'INVALID_PDF_SIGNATURE' },
|
||||||
|
{ filename: 'b.pdf', reason: 'INVALID_PDF_SIGNATURE' }
|
||||||
|
]
|
||||||
|
}),
|
||||||
|
ontrigger: () => {}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
await expect.element(getByTestId('skipped-count')).not.toBeInTheDocument();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user