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');
|
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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user