diff --git a/frontend/src/components/message-input/AttachmentChipList.test.tsx b/frontend/src/components/message-input/AttachmentChipList.test.tsx index b117f6bc..df8a5a1d 100644 --- a/frontend/src/components/message-input/AttachmentChipList.test.tsx +++ b/frontend/src/components/message-input/AttachmentChipList.test.tsx @@ -106,8 +106,9 @@ describe('AttachmentChipList failed chip', () => { )!; const describedBy = remove.getAttribute('aria-describedby'); expect(describedBy).toBeTruthy(); + // Named, since the button's own label doesn't say which file. expect(document.getElementById(describedBy!)?.textContent).toBe( - 'Upload failed. The file could not be read.', + 'scan.pdf: Upload failed. The file could not be read.', ); }); diff --git a/frontend/src/components/message-input/AttachmentChipList.tsx b/frontend/src/components/message-input/AttachmentChipList.tsx index f6d6cd48..6376e7fd 100644 --- a/frontend/src/components/message-input/AttachmentChipList.tsx +++ b/frontend/src/components/message-input/AttachmentChipList.tsx @@ -124,7 +124,7 @@ export default function AttachmentChipList({ {failureReason && ( )}