From 9792e330b6d087979f311ff0ce99b0c2a49ab215 Mon Sep 17 00:00:00 2001 From: Dhruv Joshi Date: Mon, 6 Jan 2025 15:46:32 +0000 Subject: [PATCH] test(MyGroupsSidebarItem): ensure Team A is not rendered in the document Signed-off-by: Dhruv Joshi --- .../components/MyGroupsSidebarItem/MyGroupsSidebarItem.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/org/src/components/MyGroupsSidebarItem/MyGroupsSidebarItem.test.tsx b/plugins/org/src/components/MyGroupsSidebarItem/MyGroupsSidebarItem.test.tsx index 092f020c6b..9521bcc0a2 100644 --- a/plugins/org/src/components/MyGroupsSidebarItem/MyGroupsSidebarItem.test.tsx +++ b/plugins/org/src/components/MyGroupsSidebarItem/MyGroupsSidebarItem.test.tsx @@ -195,6 +195,7 @@ describe('MyGroupsSidebarItem Test', () => { expect(rendered.getByLabelText('My Squads')).toBeInTheDocument(); expect(rendered.getByLabelText('Team B')).toBeInTheDocument(); + expect(rendered.getByLabelText('Team A')).not.toBeInTheDocument(); expect(rendered.getByLabelText('Team C')).toHaveAttribute( 'href', '/catalog/default/Group/team-c',