From 5f63736b5dd0ecd425b71cc9d97e11a85d0a4368 Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 1 Sep 2026 16:32:10 +0200 Subject: [PATCH] test(pages): wiring mocks track the new gallery-provider and weather-anchor contracts --- client/src/pages/JourneyDetailPage.wiring.test.tsx | 1 + client/src/pages/TripPlannerPage.wiring.test.tsx | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/pages/JourneyDetailPage.wiring.test.tsx b/client/src/pages/JourneyDetailPage.wiring.test.tsx index 8947886df..4938a52d3 100644 --- a/client/src/pages/JourneyDetailPage.wiring.test.tsx +++ b/client/src/pages/JourneyDetailPage.wiring.test.tsx @@ -99,6 +99,7 @@ function buildHook(over: Record = {}): Record showSettings: false, setShowSettings: vi.fn(), hideSkeletons: false, setHideSkeletons: vi.fn(), mapRef: { current: null }, fullMapRef: { current: null }, galleryUploadRef: { current: null }, + galleryProviders: [], setGalleryProviders: vi.fn(), galleryBrowseRef: { current: null }, activeLocationId: null, handleMarkerClick: vi.fn(), handleLocationClick: vi.fn(), mapEntries: [], sidebarMapItems: [], tripDates: new Set(), isMobile: false, feedEdge: { atTop: true, atBottom: true }, scrollFeedTo: vi.fn(), diff --git a/client/src/pages/TripPlannerPage.wiring.test.tsx b/client/src/pages/TripPlannerPage.wiring.test.tsx index 7d2741648..69861f580 100644 --- a/client/src/pages/TripPlannerPage.wiring.test.tsx +++ b/client/src/pages/TripPlannerPage.wiring.test.tsx @@ -592,11 +592,11 @@ describe('TripPlannerPage — day detail and inspector', () => { expect(hookState.loadAccommodations).toHaveBeenCalled() }) - it('FE-PAGE-TPW-025: a day without geo stops falls back to any place with coordinates', () => { + it('FE-PAGE-TPW-025: a day without geo stops gets no weather anchor from other days (#2167)', () => { renderPage({ showDayDetail: { ...day, id: 99 }, assignments: {} }) - expect(props('dayDetail').lat).toBe(34.9) - expect(props('dayDetail').lng).toBe(135.7) + expect(props('dayDetail').lat).toBeNull() + expect(props('dayDetail').lng).toBeNull() }) it('FE-PAGE-TPW-026: the desktop inspector edits, deletes and rates through the hook', async () => {