diff --git a/src/features/flights-map/components/FlightsMapStartPage.test.tsx b/src/features/flights-map/components/FlightsMapStartPage.test.tsx index 81cd95bf..8fcef7dd 100644 --- a/src/features/flights-map/components/FlightsMapStartPage.test.tsx +++ b/src/features/flights-map/components/FlightsMapStartPage.test.tsx @@ -334,6 +334,29 @@ describe("FlightsMapStartPage — polylines from search results (C.3)", () => { }); }); +describe("TZ §4.1.4 Table 7 breadcrumbs — Flight-Map pages (rows 1-3)", () => { + it("4.1.4-R-Map-Crumb: Flight-Map page shows only [Главная] per TZ Table 7 rows 1-3", () => { + dictState.dictionaries = buildDictionaries(); + dictState.loading = false; + dictState.error = null; + searchState.routes = []; + searchState.loading = false; + searchState.error = null; + + const { container } = render(); + + // Breadcrumbs component auto-prepends Home (Главная), so passing [] + // means exactly 1 breadcrumb item should render: just Home. + const crumbItems = container.querySelectorAll('[data-testid="breadcrumbs"] li'); + expect(crumbItems).toHaveLength(1); + + // The single item should not have any child links or extra content + // (just the Home link auto-prepended, no self-referential "Карта полетов" crumb). + const homeLink = container.querySelector('[data-testid="breadcrumbs"] a'); + expect(homeLink).toBeTruthy(); + }); +}); + describe("FlightsMapStartPage — C.4 integration", () => { beforeEach(() => { lastMapCanvasProps = null; diff --git a/src/features/flights-map/components/FlightsMapStartPage.tsx b/src/features/flights-map/components/FlightsMapStartPage.tsx index d4239ce3..dbbee606 100644 --- a/src/features/flights-map/components/FlightsMapStartPage.tsx +++ b/src/features/flights-map/components/FlightsMapStartPage.tsx @@ -295,9 +295,7 @@ export const FlightsMapStartPage: FC = ({ {t("FLIGHTS-MAP.TITLE")} } - breadcrumbs={[ - { label: t("FLIGHTS-MAP.TITLE"), url: `/${locale}/flights-map` }, - ]} + breadcrumbs={[]} contentLeft={