diff --git a/src/features/flights-map/components/MapCanvas.test.tsx b/src/features/flights-map/components/MapCanvas.test.tsx
index cee61dc6..17519a3d 100644
--- a/src/features/flights-map/components/MapCanvas.test.tsx
+++ b/src/features/flights-map/components/MapCanvas.test.tsx
@@ -507,6 +507,50 @@ describe("MapCanvas — polylines (C.3)", () => {
expect(createdPolylines.length).toBe(afterInitialRender);
});
+ it("keeps drawn route endpoints visible even when their zoom tier is hidden", () => {
+ render(
+ ,
+ );
+ const map = createdMaps[0]!;
+ map.setZoom(3);
+ map.fireZoomend();
+
+ const endpoint = createdMarkers.find((m) => m.options.title === "B")!;
+ const owningLayer = createdLayerGroups.find((l) => l._markers.includes(endpoint));
+
+ expect(owningLayer).toBeDefined();
+ const addedToMap =
+ map.addLayer.mock.calls.map((c) => c[0]).includes(owningLayer!) ||
+ owningLayer!.addTo.mock.calls.length > 0;
+ expect(addedToMap).toBe(true);
+ });
+
+ it("force-opens drawn route endpoint tooltips at zoom <= 3", () => {
+ render(
+ ,
+ );
+ const map = createdMaps[0]!;
+ map.setZoom(3);
+ map.fireZoomend();
+
+ const endpoint = createdMarkers.find((m) => m.options.title === "B")!;
+ expect(endpoint.openTooltip).toHaveBeenCalled();
+ });
+
it("silently skips polylines with unknown city codes", () => {
render(
= ({
const markerIndexRef = useRef