diff --git a/app/src/components/blocks/_lloydGeorge/lloydGeorgeDownloadComplete/LloydGeorgeDownloadComplete.test.tsx b/app/src/components/blocks/_lloydGeorge/lloydGeorgeDownloadComplete/LloydGeorgeDownloadComplete.test.tsx index 07939a00a..36b31f4d6 100644 --- a/app/src/components/blocks/_lloydGeorge/lloydGeorgeDownloadComplete/LloydGeorgeDownloadComplete.test.tsx +++ b/app/src/components/blocks/_lloydGeorge/lloydGeorgeDownloadComplete/LloydGeorgeDownloadComplete.test.tsx @@ -15,7 +15,7 @@ const mockSetDownloadStage = jest.fn(); const mockPatient = buildPatientDetails(); const mockedUsePatient = usePatient as jest.Mock; const numberOfFiles = 7; -const selectedDocuments = ['selected-doc-id-1', 'selected-doc-id-2']; +const selectedDocuments = ['test-id-1', 'test-id-2']; const downloadAllSelectedDocuments: Array = []; const searchResults = [ { @@ -30,6 +30,12 @@ const searchResults = [ virusScannerResult: 'Clean', ID: 'test-id-2', }, + { + fileName: '1of1_test.pdf', + created: '2024-02-01T14:52:00.827602Z', + virusScannerResult: 'Clean', + ID: 'test-id-3', + }, ]; describe('LloydGeorgeDownloadComplete', () => { @@ -176,6 +182,8 @@ describe('LloydGeorgeDownloadComplete', () => { ), ).toBeInTheDocument(); expect(screen.getByText('Hide files')).toBeInTheDocument(); + expect(screen.getByText('1of2_test.pdf')).toBeInTheDocument(); + expect(screen.getByText('2of2_test.pdf')).toBeInTheDocument(); expect(screen.getByText('Your responsibilities with this record')).toBeInTheDocument(); expect( screen.getByText('Follow the Record Management Code of Practice'),