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(mobile-nav): follow the new default dock through the mobile suites
Maurice569f0ca1a5f8
diff --git a/client/tests/unit/mobile/MBottomNav.test.tsx b/client/tests/unit/mobile/MBottomNav.test.tsxindex 4c4cea8e6..c2cd945e6 100644--- a/client/tests/unit/mobile/MBottomNav.test.tsx+++ b/client/tests/unit/mobile/MBottomNav.test.tsx@@ -89,16 +89,32 @@ describe('MBottomNav', () => {expect(screen.getByRole('button', { name: 'Manual Booking' })).toBeInTheDocument();});- it('FE-MOB-NAV-006: journey and collections live in the More popover, not the dock', () => {+ it('FE-MOB-NAV-006: atlas and collections live in the More popover, not the dock', () => {seedAddons(['vacay', 'atlas', 'journey', 'collections']);render(<MBottomNav />, { initialEntries: ['/dashboard'] });- expect(screen.queryByRole('button', { name: 'Journey' })).not.toBeInTheDocument();+ expect(screen.queryByRole('button', { name: 'Atlas' })).not.toBeInTheDocument();fireEvent.click(screen.getByRole('button', { expanded: false }));- expect(screen.getByRole('button', { name: /Journey/ })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: /Atlas/ })).toBeInTheDocument();expect(screen.getByRole('button', { name: /Collections/ })).toBeInTheDocument();});+ it('FE-MOB-NAV-006b: the dock keeps Journey next to Vacay when both are enabled', () => {+ seedAddons(['vacay', 'atlas', 'journey', 'collections']);+ render(<MBottomNav />, { initialEntries: ['/dashboard'] });++ expect(screen.getByRole('button', { name: 'Journey' })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Vacay' })).toBeInTheDocument();+ });++ it('FE-MOB-NAV-006c: an instance without the journey addon keeps the Vacay/Atlas dock', () => {+ seedAddons(['vacay', 'atlas', 'collections']);+ render(<MBottomNav />, { initialEntries: ['/dashboard'] });++ expect(screen.getByRole('button', { name: 'Vacay' })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Atlas' })).toBeInTheDocument();+ });+it('FE-MOB-NAV-007: no More slot without popover entries', () => {seedAddons(['vacay', 'atlas']);render(<MBottomNav />, { initialEntries: ['/dashboard'] });@@ -126,7 +142,7 @@ describe('MBottomNav', () => {render(<MBottomNav />, { initialEntries: ['/dashboard'] });fireEvent.click(screen.getByRole('button', { name: 'More' }));- fireEvent.click(screen.getByRole('button', { name: /Journey/ }));+ fireEvent.click(screen.getByRole('button', { name: /Atlas/ }));const more = screen.getByRole('button', { name: 'More' });expect(more).toHaveAttribute('aria-expanded', 'false');diff --git a/client/tests/unit/mobile/settings/MMobileNavCustomizer.test.tsx b/client/tests/unit/mobile/settings/MMobileNavCustomizer.test.tsxindex 048d830f9..773fea4e7 100644--- a/client/tests/unit/mobile/settings/MMobileNavCustomizer.test.tsx+++ b/client/tests/unit/mobile/settings/MMobileNavCustomizer.test.tsx@@ -36,8 +36,8 @@ describe('MMobileNavCustomizer', () => {it('FE-MOB-SETNAVC-001: an uncustomised value falls back to the built-in dock split', () => {render(<MMobileNavCustomizer value={{ bar: [], more: [] }} onChange={vi.fn()} />);- expect(rowLabels('In the bar')).toEqual(['Vacay', 'Atlas']);- expect(rowLabels('Under “More”')).toEqual(['Journey', 'Collections']);+ expect(rowLabels('In the bar')).toEqual(['Vacay', 'Journey']);+ expect(rowLabels('Under “More”')).toEqual(['Atlas', 'Collections']);});it('FE-MOB-SETNAVC-002: Dashboard is listed pinned and has no reorder buttons', () => {