test(coverage): drive browser tests to 80% on all metrics (#496) #505
@@ -30,10 +30,7 @@ describe('documents/bulk-edit page', () => {
|
||||
it('redirects to /documents when no documents are selected', async () => {
|
||||
render(BulkEditPage, { props: {} });
|
||||
|
||||
// onMount runs immediately — give it a tick
|
||||
await new Promise((r) => setTimeout(r, 50));
|
||||
|
||||
expect(gotoSpy).toHaveBeenCalledWith('/documents');
|
||||
await vi.waitFor(() => expect(gotoSpy).toHaveBeenCalledWith('/documents'));
|
||||
});
|
||||
|
||||
it('shows the loading spinner while fetching batch metadata', async () => {
|
||||
|
||||
Reference in New Issue
Block a user