diff --git a/frontend/src/components/VSearchResultsGrid/VImageCell.vue b/frontend/src/components/VSearchResultsGrid/VImageCell.vue index 38a484081dd..5451a506710 100644 --- a/frontend/src/components/VSearchResultsGrid/VImageCell.vue +++ b/frontend/src/components/VSearchResultsGrid/VImageCell.vue @@ -31,7 +31,7 @@ diff --git a/frontend/test/unit/specs/components/related-images.spec.js b/frontend/test/unit/specs/components/related-images.spec.js index 718142d319e..8a11d5e3863 100644 --- a/frontend/test/unit/specs/components/related-images.spec.js +++ b/frontend/test/unit/specs/components/related-images.spec.js @@ -38,9 +38,10 @@ describe("RelatedImage", () => { it("should render an image grid", () => { render(VRelatedImages, options) - expect(screen.getByRole("heading").textContent).toContain( + expect(screen.getAllByRole("heading")[0].textContent).toContain( "image-details.related-images" ) + expect(screen.queryAllByRole("heading").length).toEqual(3) expect(screen.queryAllByRole("img").length).toEqual(2) expect(screen.queryAllByRole("figure").length).toEqual(2) })