implement tests, Tatort List , ComponentEmptyList refactoring

This commit is contained in:
2025-09-08 17:46:33 +02:00
parent 38cdaa538a
commit 650cfd0061
5 changed files with 84 additions and 22 deletions

View File

@@ -58,11 +58,11 @@ describe('Vorgänge Liste Page EmptyList-Komponente View', ()=>{
expect(getByTestId('empty-list')).toBeInTheDocument();
});
it('zeigt Liste(min. 1 li-Element) an, wenn Liste vorhanden ist', () => {
it('zeigt Liste(mockData 2 Elemente) an, wenn Liste vorhanden ist', () => {
const testData = { ...baseData };
const { getAllByTestId } = render(VorgangListPage, {props:{data: testData}});
const items = getAllByTestId('test-list-item');
expect(items).toHaveLength(2);
expect(items.length).toBeGreaterThan(0);
});
})