From ddda8ca60bf319d541b141f105d99efa1e4150ba Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Wed, 14 Aug 2024 18:52:00 +0800 Subject: [PATCH] feat: fix unit test Signed-off-by: SuZhou-Joe --- .../chrome/ui/header/collapsible_nav_group_enabled.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.test.tsx b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.test.tsx index 25ce7cf41d80..10d31950a3bf 100644 --- a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.test.tsx +++ b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.test.tsx @@ -206,7 +206,7 @@ describe('', () => { it('should render correctly when only one visible use case is provided', () => { const props = mockProps(); const { getAllByTestId } = render(); - expect(getAllByTestId('collapsibleNavAppLink-link-in-observability').length).toEqual(1); + expect(getAllByTestId('collapsibleNavAppLink-link-in-observability').length).toEqual(2); }); it('should show all use case by default and able to click see all', async () => {