From f3021c36a569baaf571a89fac799ea13a8342d4e Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 17 Nov 2026 02:58:38 -0800 Subject: [PATCH] Update test to reflect new collection size --- .../document-list/bulk-editor/bulk-editor.component.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.spec.ts b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.spec.ts index 3c9fe687c0..dd893717f5 100644 --- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.spec.ts +++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.spec.ts @@ -1282,6 +1282,7 @@ describe('BulkEditorComponent', () => { ) // listAllFilteredIds component.showConfirmationDialogs = false + documentListViewService.collectionSize = 2 fixture.detectChanges() jest .spyOn(documentListViewService, 'allSelected', 'get') @@ -1292,7 +1293,7 @@ describe('BulkEditorComponent', () => { ) req.flush({ result: 'OK', task_id: 'delete-2' }) // ids aren't known when all matching documents are selected, so no undo - expect(trackSpy).toHaveBeenLastCalledWith('delete-2', 0, null) + expect(trackSpy).toHaveBeenLastCalledWith("delete-2", 2, null) httpTestingController.match( `${environment.apiBaseUrl}documents/?page=1&page_size=50&ordering=-created&truncate_content=true&include_selection_data=true` ) // list reload