From 4a36a60f5ae7a660a73efa4ee92d10761cdc8b59 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 11 Oct 2026 15:06:59 +0200 Subject: [PATCH] test(roadtrip): a ferry leg draws no car on its band, while the day head keeps its drive pill's car --- client/src/components/Roadtrip/RoadtripSidebar.test.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/Roadtrip/RoadtripSidebar.test.tsx b/client/src/components/Roadtrip/RoadtripSidebar.test.tsx index cfc5aa66a..d4bca995f 100644 --- a/client/src/components/Roadtrip/RoadtripSidebar.test.tsx +++ b/client/src/components/Roadtrip/RoadtripSidebar.test.tsx @@ -653,7 +653,10 @@ describe('RoadtripSidebar', () => { // whose mode nobody drew an icon for. const ride = wrap() expect(ride.container.querySelector('svg.lucide-sailboat')).toBeInTheDocument() - expect(ride.container.querySelector('svg.lucide-car-front')).toBeNull() + // The day head sums the drive under a car of its own; the band itself draws none. + const head = screen.getByRole('heading', { level: 3 }).parentElement + const cars = [...ride.container.querySelectorAll('svg.lucide-car-front')] + expect(cars.filter(svg => !head?.contains(svg))).toHaveLength(0) }) it('FE-ROADTRIP-SIDEBAR-017: a late finding without a figure still reports itself', () => {