Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(pages): wiring mocks track the new gallery-provider and weather-anchor contracts

Maurice5f63736b5dd0
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<string, unknown> = {}): Record<string, unknown>
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<string>(), 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 () => {