feat(platform): add map situation workspace

This commit is contained in:
lingniu
2026-07-04 17:01:49 +08:00
parent 9ac2b90d12
commit 255afe8a84
6 changed files with 45 additions and 5 deletions

View File

@@ -80,6 +80,10 @@ test('exposes AMap operations shortcuts when map key is configured', async () =>
expect(await screen.findByText('地图就绪')).toBeInTheDocument();
expect(screen.getByText('版本 platform-20260704153357')).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '顶部地图态势' }));
expect(window.location.hash).toBe('#/map');
expect(await screen.findByRole('heading', { name: '地图态势' })).toBeInTheDocument();
expect(screen.getByText('地图车辆服务队列')).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '顶部实时监控' }));
expect(window.location.hash).toBe('#/realtime');
fireEvent.click(screen.getByRole('button', { name: '顶部轨迹回放' }));