Files
TREK/client/src/pages/AtlasPage.test.tsx
T
Maurice 4f8c3f045e feat(atlas): the globe Atlas with its hub, on desktop and phone
The Atlas page is now the globe. Everything the classic map offered
carries over: visited countries and regions, planned countries, the
wishlist with places and target dates, Dawarich, tours, plugin layers and
the place search. New:

- regions on the globe, with how much of a country has been seen
  (#2675, #316, #487)
- flight arcs (#1369, #2642)
- a hub with statistics, badges, wishlist, Dawarich, tours and travellers
- an instance ranking, traveller profiles and a compare overlay
- a timeline that plays back how the map grew
- phone layouts of their own: sheets, chips and swipe actions

The classic Leaflet Atlas and its phone screen are removed.
2026-11-28 22:35:20 +01:00

21 lines
713 B
TypeScript

// FE-PAGE-ATLAS-001
import { describe, expect, it, vi } from 'vitest';
import { render, screen } from '../../tests/helpers/render';
import AtlasPage from './AtlasPage';
vi.mock('./atlas/AtlasGlobeView', () => ({
default: () => <div data-testid="atlas-globe-view" />,
}));
vi.mock('../components/Help/HelpAnchor', () => ({
default: ({ id }: { id: string }) => <div data-testid={`help-anchor-${id}`} />,
}));
describe('AtlasPage', () => {
it('FE-PAGE-ATLAS-001: renders the globe view under the atlas help anchor', () => {
render(<AtlasPage />);
expect(screen.getByTestId('help-anchor-atlas')).toBeInTheDocument();
expect(screen.getByTestId('atlas-globe-view')).toBeInTheDocument();
});
});