feat(platform): include release in vehicle summary
This commit is contained in:
@@ -2349,7 +2349,7 @@ test('filters dashboard coverage from source consistency diagnosis', async () =>
|
||||
ok: true,
|
||||
json: async () => ({
|
||||
data: path.includes('/api/ops/health')
|
||||
? { linkHealth: [], kafkaLag: 0, redisOnlineKeys: 0, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000 } }
|
||||
? { linkHealth: [], kafkaLag: 0, redisOnlineKeys: 0, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000, platformRelease: 'platform-20260704155844' } }
|
||||
: { items: [], total: 0, limit: 8, offset: 0 },
|
||||
traceId: 'trace-test',
|
||||
timestamp: 1783094400000
|
||||
@@ -2458,7 +2458,7 @@ test('opens full vehicle service list from dashboard coverage filters', async ()
|
||||
ok: true,
|
||||
json: async () => ({
|
||||
data: path.includes('/api/ops/health')
|
||||
? { linkHealth: [], kafkaLag: 0, redisOnlineKeys: 0, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000 } }
|
||||
? { linkHealth: [], kafkaLag: 0, redisOnlineKeys: 0, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000, platformRelease: 'platform-20260704155844' } }
|
||||
: { items: [], total: 0, limit: 8, offset: 0 },
|
||||
traceId: 'trace-test',
|
||||
timestamp: 1783094400000
|
||||
@@ -4890,7 +4890,7 @@ test('shows vehicle context when opening detail from shareable hash', async () =
|
||||
ok: true,
|
||||
json: async () => ({
|
||||
data: path.includes('/api/ops/health')
|
||||
? { linkHealth: [], kafkaLag: 0, redisOnlineKeys: 0, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000 } }
|
||||
? { linkHealth: [], kafkaLag: 0, redisOnlineKeys: 0, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000, platformRelease: 'platform-20260704155844' } }
|
||||
: { items: [], total: 0, limit: 10, offset: 0 },
|
||||
traceId: 'trace-test',
|
||||
timestamp: 1783094400000
|
||||
@@ -9405,7 +9405,7 @@ test('copies vehicle service diagnostic summary', async () => {
|
||||
ok: true,
|
||||
json: async () => ({
|
||||
data: path.includes('/api/ops/health')
|
||||
? { linkHealth: [], kafkaLag: 0, redisOnlineKeys: 0, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000 } }
|
||||
? { linkHealth: [], kafkaLag: 0, redisOnlineKeys: 0, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000, platformRelease: 'platform-20260704155844' } }
|
||||
: { items: [], total: 0, limit: 10, offset: 0 },
|
||||
traceId: 'trace-test',
|
||||
timestamp: 1783094400000
|
||||
@@ -9418,9 +9418,12 @@ test('copies vehicle service diagnostic summary', async () => {
|
||||
expect(await screen.findByText('车辆服务结论')).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole('button', { name: /复制诊断摘要/ }));
|
||||
|
||||
expect(writeText).toHaveBeenCalledWith(expect.any(String));
|
||||
await waitFor(() => {
|
||||
expect(writeText).toHaveBeenCalledWith(expect.any(String));
|
||||
});
|
||||
const copied = String(writeText.mock.lastCall?.[0] ?? '');
|
||||
expect(copied).toContain('【车辆服务诊断摘要】');
|
||||
expect(copied).toContain('运行版本:platform-20260704155844');
|
||||
expect(copied).toContain('车辆:粤A诊断1 / VIN-SUMMARY-001');
|
||||
expect(copied).toContain('当前范围:单一来源:JT808');
|
||||
expect(copied).toContain('服务状态:来源不完整');
|
||||
|
||||
Reference in New Issue
Block a user