test(geschichten): convert .not.toThrow into person-filter chip rendering assertion

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-11 17:50:21 +02:00
committed by marcel
parent de55a4e7ab
commit 6ba89da829

View File

@@ -212,15 +212,16 @@ describe('geschichten/+ page', () => {
expect(titleHeading?.textContent).toContain('No Body'); expect(titleHeading?.textContent).toContain('No Body');
}); });
it('renders without throwing when one person filter is selected', async () => { it('renders the selected-person filter chip when one person filter is active', async () => {
expect(() => render(GeschichtenListPage, {
render(GeschichtenListPage, { props: {
props: { data: baseData({
data: baseData({ personFilters: [{ id: 'p1', displayName: 'Anna' }]
personFilters: [{ id: 'p1', displayName: 'Anna' }] })
}) }
} });
})
).not.toThrow(); // The active filter surfaces the person's name somewhere in the filter pill row.
expect(document.body.textContent).toContain('Anna');
}); });
}); });