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(tours): read what taking a place in did from the hook test, not from a planner whose points stay put

Maurice971133a1ebe6
diff --git a/client/src/components/Tours/poi/tourPoiSearch.test.tsx b/client/src/components/Tours/poi/tourPoiSearch.test.tsx
index 4e3b03918..682d5e13b 100644
--- a/client/src/components/Tours/poi/tourPoiSearch.test.tsx
+++ b/client/src/components/Tours/poi/tourPoiSearch.test.tsx
@@ -230,9 +230,8 @@ describe('TourPoiSearchCard', () => {
);
fireEvent.click(within(card).getByTestId('tour-poi-add'));
await waitFor(() => expect(planner.editWaypoints).toHaveBeenCalledTimes(1));
- // The card closes once the place is in, and the list says what it did.
+ // The card closes once the place is in. What it did is said in the list once the route has it (FE-TOUR-POI-006).
expect(screen.queryByTestId('tour-poi-overlay')).not.toBeInTheDocument();
- expect(screen.getByTestId('tour-poi-outcome')).toHaveTextContent('Spring');
});
it('FE-TOUR-POI-016: the card over the map closes on its button and on Escape, and a pin on the map opens it too', async () => {