feat(platform): surface map situation from dashboard
This commit is contained in:
@@ -394,12 +394,14 @@ test('dashboard exposes vehicle data center capability matrix', async () => {
|
||||
};
|
||||
|
||||
await renderDashboard();
|
||||
expect(screen.getAllByText('地图态势').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('实时监控').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('轨迹回放').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('历史数据查询').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('告警事件触发与通知').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('统计查询').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('在线 208').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('在线态势 208').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('有效定位 0').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('今日帧 1,286,320').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('告警 7').length).toBeGreaterThanOrEqual(1);
|
||||
@@ -409,6 +411,11 @@ test('dashboard exposes vehicle data center capability matrix', async () => {
|
||||
expect(window.location.hash).toBe('#/realtime?online=online');
|
||||
cleanup();
|
||||
|
||||
await renderDashboard();
|
||||
fireEvent.click(screen.getByRole('button', { name: '能力入口 地图态势' }));
|
||||
expect(window.location.hash).toBe('#/map?online=online');
|
||||
cleanup();
|
||||
|
||||
await renderDashboard();
|
||||
fireEvent.click(screen.getByRole('button', { name: '能力入口 轨迹回放' }));
|
||||
expect(window.location.hash.startsWith('#/history')).toBe(true);
|
||||
@@ -592,7 +599,7 @@ test('dashboard exposes vehicle command center map actions', async () => {
|
||||
|
||||
expect(await screen.findByText('实时态势地图')).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole('button', { name: '查看实时态势' }));
|
||||
expect(window.location.hash).toBe('#/realtime?online=online');
|
||||
expect(window.location.hash).toBe('#/map?online=online');
|
||||
});
|
||||
|
||||
test('dashboard shows vehicle service action queue', async () => {
|
||||
|
||||
Reference in New Issue
Block a user