feat(platform): label source evidence

This commit is contained in:
lingniu
2026-07-04 04:15:42 +08:00
parent e077d99a5e
commit 0b53abf63d
4 changed files with 21 additions and 7 deletions

View File

@@ -260,6 +260,8 @@ test('shows vehicle service result summary on vehicle list filters', async () =>
expect(screen.getByText('在线车辆')).toBeInTheDocument();
expect(screen.getByText('待绑定')).toBeInTheDocument();
expect(screen.getByText('VIN-MULTI-001')).toBeInTheDocument();
expect(screen.getAllByText('来源证据').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('1/2 来源在线')).toBeInTheDocument();
});
test('filters vehicle list from result summary actions', async () => {
@@ -551,6 +553,8 @@ test('shows row service status in dashboard vehicle previews', async () => {
render(<App />);
expect(await screen.findByText('VIN-COVERAGE-WARN')).toBeInTheDocument();
expect(screen.getAllByText('来源证据').length).toBeGreaterThanOrEqual(1);
expect(screen.getAllByText('1/2 来源在线').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('覆盖部分离线')).toBeInTheDocument();
expect(screen.getByText('VIN-REALTIME-OFFLINE')).toBeInTheDocument();
expect(screen.getByText('实时车辆离线')).toBeInTheDocument();