mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
4f8c3f045e
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.
21 lines
713 B
TypeScript
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();
|
|
});
|
|
});
|