From d6d093278f7578f043d0160df55383de92559603 Mon Sep 17 00:00:00 2001 From: Ivan Schurawel Date: Tue, 24 Oct 2023 15:21:29 -0400 Subject: [PATCH] chore: update test after rebase Signed-off-by: Ivan Schurawel --- .../src/components/EntityLayout/EntityLayout.test.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/catalog/src/components/EntityLayout/EntityLayout.test.tsx b/plugins/catalog/src/components/EntityLayout/EntityLayout.test.tsx index b9d2d42a89..3634405af8 100644 --- a/plugins/catalog/src/components/EntityLayout/EntityLayout.test.tsx +++ b/plugins/catalog/src/components/EntityLayout/EntityLayout.test.tsx @@ -257,11 +257,11 @@ describe('EntityLayout', () => { }, ); - const ownerLink = screen.getByText(mockTargetRef); + const ownerLink = screen.getByText(mockTargetRef).closest('a'); expect(ownerLink).toBeInTheDocument(); - expect(ownerLink.nodeName).toBe('A'); - const linkParent = ownerLink.parentElement; + expect(ownerLink?.tagName).toBe('A'); + const linkParent = ownerLink?.parentElement; expect(linkParent).toBeInTheDocument(); - expect(linkParent?.nodeName).toBe('P'); + expect(linkParent?.tagName).toBe('P'); }); });