feat(platform): surface overview consistency
This commit is contained in:
@@ -379,6 +379,14 @@ test('shows resolved vehicle service status after topbar search', async () => {
|
||||
detail: '后端统一车辆服务状态',
|
||||
sourceCount: 2,
|
||||
onlineSourceCount: 1
|
||||
},
|
||||
sourceConsistency: {
|
||||
sourceCount: 2,
|
||||
onlineSourceCount: 1,
|
||||
locatedSourceCount: 2,
|
||||
mileageDeltaKm: 0,
|
||||
sourceTimeDeltaSeconds: 0,
|
||||
scope: 'all_sources'
|
||||
}
|
||||
},
|
||||
traceId: 'trace-test',
|
||||
@@ -424,6 +432,7 @@ test('shows resolved vehicle service status after topbar search', async () => {
|
||||
|
||||
expect(await screen.findByText('当前车辆:后端判定部分离线')).toBeInTheDocument();
|
||||
expect(screen.getByText('粤AG18312 / LB9A32A24R0LS1426')).toBeInTheDocument();
|
||||
expect(screen.getByText('一致性:1/2 来源')).toBeInTheDocument();
|
||||
expect(fetchMock).toHaveBeenCalledWith(expect.stringContaining('/api/vehicle-service/overview?keyword=%E7%B2%A4AG18312'), undefined);
|
||||
expect(fetchMock).not.toHaveBeenCalledWith(expect.stringContaining('/api/vehicles/resolve'), undefined);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user