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 57ac82b823 - Show all commits

View File

@@ -30,10 +30,7 @@ describe('documents/bulk-edit page', () => {
it('redirects to /documents when no documents are selected', async () => { it('redirects to /documents when no documents are selected', async () => {
render(BulkEditPage, { props: {} }); render(BulkEditPage, { props: {} });
// onMount runs immediately — give it a tick await vi.waitFor(() => expect(gotoSpy).toHaveBeenCalledWith('/documents'));
await new Promise((r) => setTimeout(r, 50));
expect(gotoSpy).toHaveBeenCalledWith('/documents');
}); });
it('shows the loading spinner while fetching batch metadata', async () => { it('shows the loading spinner while fetching batch metadata', async () => {