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