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.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix: correct test matchers for list import and reservations
Maurice125436fa87b5
diff --git a/client/src/components/Planner/PlacesSidebar.test.tsx b/client/src/components/Planner/PlacesSidebar.test.tsxindex c72d63f4a..7d7221da4 100644--- a/client/src/components/Planner/PlacesSidebar.test.tsx+++ b/client/src/components/Planner/PlacesSidebar.test.tsx@@ -473,14 +473,14 @@ describe('Google Maps list import', () => {it('FE-PLANNER-SIDEBAR-040: "Google List" button opens the URL dialog', async () => {const user = userEvent.setup();render(<PlacesSidebar {...defaultProps} />);- await user.click(screen.getByText(/Import List/i));+ await user.click(screen.getByText(/List Import/i));expect(await screen.findByPlaceholderText(/maps\.app\.goo\.gl/i)).toBeInTheDocument();});it('FE-PLANNER-SIDEBAR-041: import button disabled when URL input is empty', async () => {const user = userEvent.setup();render(<PlacesSidebar {...defaultProps} />);- await user.click(screen.getByText(/Import List/i));+ await user.click(screen.getByText(/List Import/i));await screen.findByPlaceholderText(/maps\.app\.goo\.gl/i);const importBtn = screen.getByRole('button', { name: /^Import$/i });expect(importBtn).toBeDisabled();@@ -498,7 +498,7 @@ describe('Google Maps list import', () => {(window as any).__addToast = addToast;const user = userEvent.setup();render(<PlacesSidebar {...defaultProps} pushUndo={vi.fn()} />);- await user.click(screen.getByText(/Import List/i));+ await user.click(screen.getByText(/List Import/i));const urlInput = await screen.findByPlaceholderText(/maps\.app\.goo\.gl/i);await user.type(urlInput, 'https://maps.app.goo.gl/abc123');await user.click(screen.getByRole('button', { name: /^Import$/i }));@@ -527,7 +527,7 @@ describe('Google Maps list import', () => {(window as any).__addToast = addToast;const user = userEvent.setup();render(<PlacesSidebar {...defaultProps} pushUndo={vi.fn()} />);- await user.click(screen.getByText(/Import List/i));+ await user.click(screen.getByText(/List Import/i));const urlInput = await screen.findByPlaceholderText(/maps\.app\.goo\.gl/i);await user.type(urlInput, 'https://maps.app.goo.gl/xyz{Enter}');await waitFor(() => {diff --git a/client/src/components/Planner/ReservationsPanel.test.tsx b/client/src/components/Planner/ReservationsPanel.test.tsxindex f461251e5..2dcd9c860 100644--- a/client/src/components/Planner/ReservationsPanel.test.tsx+++ b/client/src/components/Planner/ReservationsPanel.test.tsx@@ -92,11 +92,11 @@ describe('ReservationsPanel', () => {});it('FE-COMP-RES-010: shows reservations title and cards', () => {- const r1 = buildReservation({ title: 'Flight', type: 'flight', status: 'confirmed' });- const r2 = buildReservation({ title: 'Hotel', type: 'hotel', status: 'pending' });+ const r1 = buildReservation({ title: 'My Flight Booking', type: 'flight', status: 'confirmed' });+ const r2 = buildReservation({ title: 'Grand Hotel', type: 'hotel', status: 'pending' });render(<ReservationsPanel {...defaultProps} reservations={[r1, r2]} />);- expect(screen.getByText('Flight')).toBeInTheDocument();- expect(screen.getByText('Hotel')).toBeInTheDocument();+ expect(screen.getByText('My Flight Booking')).toBeInTheDocument();+ expect(screen.getByText('Grand Hotel')).toBeInTheDocument();});it('FE-COMP-RES-011: hotel reservation renders', () => {