diff --git a/vehicle-data-platform/apps/web/src/pages/Realtime.tsx b/vehicle-data-platform/apps/web/src/pages/Realtime.tsx index 688b695b..88e6448c 100644 --- a/vehicle-data-platform/apps/web/src/pages/Realtime.tsx +++ b/vehicle-data-platform/apps/web/src/pages/Realtime.tsx @@ -147,7 +147,7 @@ export function Realtime({ onOpenVehicle }: { onOpenVehicle: (vin: string, proto title: '操作', width: 110, render: (_: unknown, row: VehicleRealtimeRow) => ( - + ) } ]} diff --git a/vehicle-data-platform/apps/web/src/test/App.test.tsx b/vehicle-data-platform/apps/web/src/test/App.test.tsx index f6080a0a..1d6612a2 100644 --- a/vehicle-data-platform/apps/web/src/test/App.test.tsx +++ b/vehicle-data-platform/apps/web/src/test/App.test.tsx @@ -1913,7 +1913,7 @@ test('opens current vehicle service from history header with current source evid }); }); -test('opens unified vehicle service from realtime vehicles without primary protocol', async () => { +test('opens vehicle service from realtime vehicles with primary source evidence', async () => { window.history.replaceState(null, '', '/#/realtime'); vi.spyOn(globalThis, 'fetch').mockImplementation(async (input) => { const path = String(input); @@ -1984,7 +1984,7 @@ test('opens unified vehicle service from realtime vehicles without primary proto fireEvent.click(screen.getByRole('button', { name: '车辆服务' })); await waitFor(() => { - expect(window.location.hash).toBe('#/detail?keyword=VIN-MQTT-001'); + expect(window.location.hash).toBe('#/detail?keyword=VIN-MQTT-001&protocol=YUTONG_MQTT'); }); });