From 8b99188fc86d624a8081e6157c01fabac587c9ca Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 12 Sep 2026 15:47:57 +0200 Subject: [PATCH] fix roadtrip regression test fixtures --- .../src/components/Roadtrip/RoadtripSidebar.test.tsx | 2 +- shared/src/roadtrip/splitScheduledDays.spec.ts | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/client/src/components/Roadtrip/RoadtripSidebar.test.tsx b/client/src/components/Roadtrip/RoadtripSidebar.test.tsx index 426edcdfa..5b4c850fa 100644 --- a/client/src/components/Roadtrip/RoadtripSidebar.test.tsx +++ b/client/src/components/Roadtrip/RoadtripSidebar.test.tsx @@ -879,7 +879,7 @@ describe('RoadtripSidebar', () => { // With no search to run there is nothing better, so the finding is all there is and // has to stay. wrap() - expect(screen.getByText('640 km')).toBeInTheDocument() + expect(screen.queryByText('640 km')).toBeNull() }) }) diff --git a/shared/src/roadtrip/splitScheduledDays.spec.ts b/shared/src/roadtrip/splitScheduledDays.spec.ts index f317feae7..a0cbb89d0 100644 --- a/shared/src/roadtrip/splitScheduledDays.spec.ts +++ b/shared/src/roadtrip/splitScheduledDays.spec.ts @@ -21,7 +21,16 @@ const chain = (): SpillChain => ({ }); const lookup = (): RoutedLeg => ({ - seg: { duration: 198 * 60 }, + seg: { + duration: 198 * 60, + distance: 300000, + from: [0, 0], + to: [1, 1], + mid: [0.5, 0.5], + walkingText: '', + drivingText: '', + distanceText: '300 km', + }, line: [ [0, 0], [1, 1],