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 a3f5ba55f4 - Show all commits

View File

@@ -110,10 +110,8 @@ describe('CorrespondenzPersonBar', () => {
const corrInput = inputs[inputs.length - 1] as HTMLInputElement;
corrInput.dispatchEvent(new Event('focus', { bubbles: true }));
await new Promise((r) => setTimeout(r, 100));
// No assertion on the suggestions dropdown UI (component-internal),
// just confirm the fetch was made
expect(fetchSpy).toHaveBeenCalled();
// Confirm the typeahead fired the suggestions fetch.
await vi.waitFor(() => expect(fetchSpy).toHaveBeenCalled());
} finally {
fetchSpy.mockRestore();
}