diff --git a/plugins/techdocs/src/reader/components/TechDocsPageHeader.test.tsx b/plugins/techdocs/src/reader/components/TechDocsPageHeader.test.tsx
index 8128366392..082caeeb09 100644
--- a/plugins/techdocs/src/reader/components/TechDocsPageHeader.test.tsx
+++ b/plugins/techdocs/src/reader/components/TechDocsPageHeader.test.tsx
@@ -18,6 +18,7 @@ import { TechDocsPageHeader } from './TechDocsPageHeader';
import { act } from '@testing-library/react';
import { renderInTestApp } from '@backstage/test-utils';
import { entityRouteRef } from '@backstage/plugin-catalog-react';
+import { rootRouteRef } from '../../plugin';
describe('', () => {
it('should render a techdocs page header', async () => {
@@ -54,6 +55,7 @@ describe('', () => {
{
mountedRoutes: {
'/catalog/:namespace/:kind/:name/*': entityRouteRef,
+ '/docs': rootRouteRef,
},
},
);
@@ -85,6 +87,7 @@ describe('', () => {
{
mountedRoutes: {
'/catalog/:namespace/:kind/:name/*': entityRouteRef,
+ '/docs': rootRouteRef,
},
},
);
@@ -118,6 +121,7 @@ describe('', () => {
{
mountedRoutes: {
'/catalog/:namespace/:kind/:name/*': entityRouteRef,
+ '/docs': rootRouteRef,
},
},
);