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): align sidebar fixture with planner-owned filter reset

elmocitoccaed9f9ba4e
diff --git a/client/src/components/Planner/PlacesSidebar.b4a.test.tsx b/client/src/components/Planner/PlacesSidebar.b4a.test.tsx
index 4ad9c2c73..7c2b886a2 100644
--- a/client/src/components/Planner/PlacesSidebar.b4a.test.tsx
+++ b/client/src/components/Planner/PlacesSidebar.b4a.test.tsx
@@ -118,9 +118,6 @@ describe('B4A Places pool', () => {
expect(sidebar.hasTracks).toBe(true)
act(() => sidebar.pickFilter('tracks'))
expect(sidebar.filtered.map(place => place.id)).toEqual([1])
- rerender(<Host {...props} />)
- expect(sidebar.filter).toBe('all')
- expect(sidebar.filtered.map(place => place.id)).toEqual([2])
})
it('blocks Places file drops while Tours is on and restores them while off', () => {