test(coverage): drive browser tests to 80% on all metrics (#496) #505

Merged
marcel merged 189 commits from feat/issue-496-browser-coverage-tests into main 2026-05-11 21:50:39 +02:00
Showing only changes of commit da5da46951 - Show all commits

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');
}); });
}); });