From d9d1ff6ed6598cc69e2168f4958d37dd92e2a25c Mon Sep 17 00:00:00 2001 From: Qxisylolo Date: Fri, 23 Aug 2024 13:39:05 +0800 Subject: [PATCH] fix bugs-1 Signed-off-by: Qxisylolo --- src/core/public/chrome/ui/header/recent_items.test.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/public/chrome/ui/header/recent_items.test.tsx b/src/core/public/chrome/ui/header/recent_items.test.tsx index 5b2ce099819a..809807c59c26 100644 --- a/src/core/public/chrome/ui/header/recent_items.test.tsx +++ b/src/core/public/chrome/ui/header/recent_items.test.tsx @@ -67,6 +67,11 @@ jest.spyOn(defaultMockProps.http, 'get').mockImplementation( ); describe('Recent items', () => { + it('should render base element normally', () => { + const { baseElement } = render(); + expect(baseElement).toMatchSnapshot(); + }); + it('render with empty recent work', () => { const { getByText, getByTestId } = render(); const mockRecentButton = getByTestId('recentItemsSectionButton');