feat(platform): link missing source diagnosis to vehicles

This commit is contained in:
lingniu
2026-07-04 06:05:40 +08:00
parent eb7c47b4f5
commit 111154ed39
3 changed files with 16 additions and 2 deletions

View File

@@ -2660,4 +2660,6 @@ test('shows cross-source consistency for one vehicle service', async () => {
expect(screen.getAllByText('3 个来源有位置').length).toBeGreaterThan(0);
expect(screen.getAllByText('0.4 km').length).toBeGreaterThan(0);
expect(screen.getAllByText('35 秒').length).toBeGreaterThan(0);
fireEvent.click(screen.getByRole('button', { name: '查看缺 YUTONG_MQTT 车辆' }));
expect(window.location.hash).toBe('#/vehicles?serviceStatus=degraded&missingProtocol=YUTONG_MQTT');
});