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

View File

@@ -60,8 +60,7 @@ describe('documents/[id]/edit page', () => {
it('uses doc.title in the document title when set', async () => {
render(DocumentEditPage, { props: { data: baseData(), form: undefined } });
await new Promise((r) => setTimeout(r, 30));
expect(document.title).toContain('Brief an Helene');
await vi.waitFor(() => expect(document.title).toContain('Brief an Helene'));
});
it('falls back to originalFilename when title is empty', async () => {
@@ -72,8 +71,7 @@ describe('documents/[id]/edit page', () => {
}
});
await new Promise((r) => setTimeout(r, 30));
expect(document.title).toContain('fallback.pdf');
await vi.waitFor(() => expect(document.title).toContain('fallback.pdf'));
});
it('renders the cancel link to the document detail page', async () => {