feat(platform): add map layer control panel

This commit is contained in:
lingniu
2026-07-06 03:46:29 +08:00
parent 68fed933d9
commit ab8ae961e6
3 changed files with 226 additions and 0 deletions

View File

@@ -10917,6 +10917,16 @@ test('shows realtime freshness status for recently updated and stale vehicles',
expect(screen.getByRole('button', { name: '地图状态筛选条 离线车辆 1 离线' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图状态筛选条 无坐标车辆 0 无坐标' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图状态筛选条 需关注车辆 1 关注' })).toBeInTheDocument();
expect(screen.getByText('地图图层控制台')).toBeInTheDocument();
expect(screen.getByText('把实时地图拆成客户能理解的图层:在线、关注、定位、选车服务和交付导出。')).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图图层控制台 在线车辆 1 在线' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图图层控制台 关注车辆 1 关注' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图图层控制台 定位车辆 2 定位' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图图层控制台 选中车辆 粤A超时1' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图图层动作 只看在线 在线层' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图图层动作 优先关注 关注层' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图图层动作 选车服务 服务层' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图图层动作 导出态势 交付层' })).toBeInTheDocument();
expect(screen.getAllByText('数据新鲜').length).toBeGreaterThan(0);
expect(screen.getAllByText('更新超时').length).toBeGreaterThan(0);
expect(screen.getByText('车辆服务闭环')).toBeInTheDocument();