feat(platform): refine mileage evidence wording

This commit is contained in:
lingniu
2026-07-05 04:10:39 +08:00
parent 442e4e9390
commit 6f3907c002
2 changed files with 16 additions and 16 deletions

View File

@@ -7304,7 +7304,7 @@ test('shows and clears current mileage filters while keeping vehicle scope', asy
expect(await screen.findByText('当前里程筛选')).toBeInTheDocument();
expect(screen.getByText('车辆VIN-MILEAGE-002')).toBeInTheDocument();
expect(screen.getByText('据来源JT808')).toBeInTheDocument();
expect(screen.getByText('据来源JT808')).toBeInTheDocument();
expect(screen.getByText('开始日期2026-07-01')).toBeInTheDocument();
expect(screen.getByText('结束日期2026-07-03')).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '清空筛选' }));
@@ -7744,7 +7744,7 @@ test('shows mileage anomaly action guidance', async () => {
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【里程异常证据包】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('车辆粤A异常1 / VIN-MILEAGE-ANOMALY'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('据来源GB32960'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('据来源GB32960'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('统计日期2026-07-03'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('日里程:-3.2 km'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('异常等级warning'));
@@ -8019,7 +8019,7 @@ test('shows vehicle-first statistics domains for one vehicle service', async ()
fireEvent.click(screen.getByRole('button', { name: '复制影响范围' }));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【统计影响范围】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('车辆范围VIN-STATS-SERVICE'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('据来源JT808'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('据来源JT808'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('影响车辆3 辆'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('统计记录6 条'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('累计里程210 km'));
@@ -8034,7 +8034,7 @@ test('shows vehicle-first statistics domains for one vehicle service', async ()
fireEvent.click(screen.getByRole('button', { name: '复制在线态势' }));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【在线统计运营态势】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('车辆范围VIN-STATS-SERVICE'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('据来源JT808'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('据来源JT808'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('在线概览3 在线 / 1 离线 / 在线率 75%'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('Redis 在线 Key92'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('当前页车辆2 / 当前筛选 2'));
@@ -8127,7 +8127,7 @@ test('copies mileage statistics summary for operations reporting', async () => {
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【里程统计摘要】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('车辆范围VIN-MILEAGE-COPY'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('据来源JT808'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('据来源JT808'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('日期范围2026-07-01 至 2026-07-03'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('累计里程140 km'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('当前页里程140 km'));