diff --git a/web/app/components/base/chat/chat/citation/__tests__/index.spec.tsx b/web/app/components/base/chat/chat/citation/__tests__/index.spec.tsx index 13f8f1fab24..f734db90c13 100644 --- a/web/app/components/base/chat/chat/citation/__tests__/index.spec.tsx +++ b/web/app/components/base/chat/chat/citation/__tests__/index.spec.tsx @@ -96,7 +96,9 @@ describe('Citation', () => { ]} />, ) - expect(screen.getAllByTestId('citation-measurement-item')).toHaveLength(2) + const measurementItems = screen.getAllByTestId('citation-measurement-item') + expect(measurementItems).toHaveLength(2) + measurementItems.forEach((item) => expect(item).toHaveAttribute('aria-hidden', 'true')) }) it('should display the document name inside each measurement item', () => { diff --git a/web/app/components/base/chat/chat/citation/index.tsx b/web/app/components/base/chat/chat/citation/index.tsx index 2ae793f9a52..9e57636bdf5 100644 --- a/web/app/components/base/chat/chat/citation/index.tsx +++ b/web/app/components/base/chat/chat/citation/index.tsx @@ -86,6 +86,7 @@ const Citation: FC = ({ {resources.map((res, index) => (
{