diff --git a/plugins/techdocs/src/home/components/Grids/InfoCardGrid.test.tsx b/plugins/techdocs/src/home/components/Grids/InfoCardGrid.test.tsx
index dcb773120e..a2d95950f9 100644
--- a/plugins/techdocs/src/home/components/Grids/InfoCardGrid.test.tsx
+++ b/plugins/techdocs/src/home/components/Grids/InfoCardGrid.test.tsx
@@ -64,32 +64,6 @@ describe('Entity Info Card Grid', () => {
expect(await screen.findByText('TestTitle2')).toBeInTheDocument();
});
- it('should handle missing data gracefully', async () => {
- await renderInTestApp(
- ,
- {
- mountedRoutes: {
- '/docs/:namespace/:kind/:name/*': rootDocsRouteRef,
- },
- },
- );
-
- expect(await screen.findByText('testName')).toBeInTheDocument();
- });
-
it('should render links correctly', async () => {
await renderInTestApp(
{
title: 'First Tab',
description: 'First Tab Description',
panelType: 'DocsCardGrid' as PanelType,
- panelProps: { CustomHeader: React.Fragment },
+ panelProps: {
+ CustomHeader: () => (
+
+ ),
+ },
filterPredicate: () => true,
},
],
@@ -131,9 +138,7 @@ describe('TechDocsCustomHome', () => {
},
);
- expect(
- screen.queryByText('Discover documentation in your ecosystem.'),
- ).not.toBeInTheDocument();
+ expect(screen.getByText('Custom Header')).toBeInTheDocument();
});
it('should render CustomPageWrapper', async () => {
const tabsConfig = [