feat(platform): add customer service blueprint
This commit is contained in:
@@ -879,6 +879,7 @@ test('dashboard presents a customer dispatch operations home', async () => {
|
||||
|
||||
test('dashboard frames history query and export as a customer delivery workbench', async () => {
|
||||
window.history.replaceState(null, '', '/#/dashboard');
|
||||
vi.setSystemTime(new Date('2026-07-05T12:00:00+08:00'));
|
||||
vi.spyOn(globalThis, 'fetch').mockImplementation(async (input) => {
|
||||
const path = String(input);
|
||||
if (path.includes('/api/ops/health')) {
|
||||
@@ -1350,6 +1351,13 @@ test('dashboard exposes vehicle data center capability matrix', async () => {
|
||||
|
||||
await renderDashboard();
|
||||
expect(screen.getByText('车辆服务工作台')).toBeInTheDocument();
|
||||
expect(screen.getByText('客户车辆服务中台蓝图')).toBeInTheDocument();
|
||||
expect(screen.getByText('参考主流车联网平台的信息架构,把 Live Map、Route Replay、Geofence Alerts、Reports Export 和 Vehicle Health 收敛成客户可直接使用的车辆服务。')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户车辆服务中台蓝图 实时地图 208 在线 打开地图' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户车辆服务中台蓝图 轨迹回放 4 活跃 回放轨迹' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户车辆服务中台蓝图 围栏告警 7 告警 告警通知' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户车辆服务中台蓝图 报表导出 1,286,320 今日数据 历史导出' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户车辆服务中台蓝图 车辆健康 1,033 车辆 车辆中心' })).toBeInTheDocument();
|
||||
expect(screen.getByText('现代车队运营台')).toBeInTheDocument();
|
||||
expect(screen.getByText('一屏完成车辆地图、轨迹回放、里程统计、数据导出和告警闭环。')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '现代车队运营台 Live Map 208 在线 打开地图' })).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user