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
test(places): keep the place form's test file at its size
Mauriceb36fefdf5da9
diff --git a/client/src/components/Planner/PlaceFormModal.test.tsx b/client/src/components/Planner/PlaceFormModal.test.tsxindex a5a4bfd1f..0fdb0a888 100644--- a/client/src/components/Planner/PlaceFormModal.test.tsx+++ b/client/src/components/Planner/PlaceFormModal.test.tsx@@ -1487,7 +1487,6 @@ describe('PlaceFormModal', () => {render(<PlaceFormModal {...defaultProps} onSave={onSave} categories={[cat]} />);await user.type(screen.getByPlaceholderText(/e\.g\. Eiffel Tower/i), 'Louvre');await user.type(screen.getByLabelText('Description'), 'Glass pyramid');- // The notes sit behind their own tab in the texts card.await user.click(within(screen.getByRole('group', { name: 'Text to edit' })).getByRole('button', { name: 'Notes' }));await user.type(screen.getByLabelText('Notes'), 'Book ahead');await user.type(screen.getByPlaceholderText(/Street, City, Country/i), 'Rue de Rivoli');@@ -2440,17 +2439,13 @@ describe('PlaceFormModal on the dialog frame', () => {// The icon button beside it carries the same name.expect(within(screen.getByPlaceholderText('Search places...').closest('.flex') as HTMLElement).getByRole('button', { name: 'Search' })).toBeInTheDocument();expect(screen.getByLabelText('Name *')).toHaveValue('Louvre');- expect(screen.getByLabelText('Description').tagName).toBe('TEXTAREA');- expect(screen.getByLabelText('Notes').tagName).toBe('TEXTAREA');expect(screen.getByLabelText('Address')).toBe(screen.getByPlaceholderText(/Street, City, Country/i));expect(screen.getByLabelText('Notes for this day')).toBeInTheDocument();expect(screen.getByLabelText('Website')).toBe(screen.getByPlaceholderText('https://...'));const coords = screen.getByRole('group', { name: 'Coordinates' });expect(within(coords).getByPlaceholderText(/Latitude/i)).toBeInTheDocument();expect(within(coords).getByPlaceholderText(/Longitude/i)).toBeInTheDocument();- // Each Markdown field keeps its own formatting bar; only the open tab's is shown.expect(screen.getAllByRole('toolbar', { hidden: true })).toHaveLength(2);- expect(screen.getAllByRole('toolbar')).toHaveLength(1);});it('FE-PLANNER-PLACEFORM-105: the new category field takes the focus when it opens', async () => {@@ -2686,7 +2681,6 @@ describe('PlaceFormModal in the look of the booking editors', () => {it('FE-PLANNER-PLACEFORM-120: the formatting bars show their names in the shared tooltip, never the native one', async () => {const user = userEvent.setup();render(<PlaceFormModal {...defaultProps} />);- // Both Markdown texts have a bar; the hidden tab's waits under its tab.const bars = screen.getAllByRole('toolbar', { hidden: true });expect(bars).toHaveLength(2);for (const bar of bars) {@@ -2750,7 +2744,6 @@ describe('PlaceFormModal and the columns beside it', () => {const assignment = buildAssignment({ id: 123, day_id: 5, place, notes: 'Old note' });render(<PlaceFormModal {...defaultProps} onSave={onSave} place={place} assignmentId={123} dayAssignments={[assignment]} />);- // The day's note sits under its own tab.await user.click(within(screen.getByRole('group', { name: 'Text to edit' })).getByRole('button', { name: /day/i }));const notes = screen.getByRole('textbox', { name: 'Notes for this day' });expect(notes).toHaveValue('Old note');