feat(platform): add history replay customer navigation
This commit is contained in:
@@ -5516,6 +5516,12 @@ test('copies trajectory playback summary from history page', async () => {
|
||||
|
||||
expect((await screen.findAllByText('VIN-HISTORY-SUMMARY')).length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('轨迹回放工作台')).toBeInTheDocument();
|
||||
expect(screen.getByText('客户复盘导航')).toBeInTheDocument();
|
||||
expect(screen.getByText('像 Trips History 一样,先锁定车辆和时间,再回放路线、核对里程、导出证据。')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户复盘导航 选车和时间 调整筛选' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户复盘导航 回放路线 播放轨迹' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户复盘导航 核对里程 统计查询' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户复盘导航 导出证据 复制交付' })).toBeInTheDocument();
|
||||
expect(screen.getByText('按车辆和时间窗复盘每一段行程')).toBeInTheDocument();
|
||||
expect(screen.getByText('客户需要看到路线、起止时间、里程变化、速度异常和可导出的证据。明细证据和字段裁剪只作为轨迹复盘的依据。')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '轨迹回放指标 轨迹点 2' })).toBeInTheDocument();
|
||||
@@ -7267,7 +7273,7 @@ test('exports current history location page as csv', async () => {
|
||||
|
||||
render(<App />);
|
||||
|
||||
expect(await screen.findByText('VIN-EXPORT-LOC')).toBeInTheDocument();
|
||||
expect((await screen.findAllByText('VIN-EXPORT-LOC')).length).toBeGreaterThan(0);
|
||||
fireEvent.click(screen.getByRole('button', { name: '导出位置当前页 CSV' }));
|
||||
|
||||
expect(createObjectURL).toHaveBeenCalled();
|
||||
@@ -8570,7 +8576,7 @@ test('opens same-day mileage statistics from history location row', async () =>
|
||||
|
||||
render(<App />);
|
||||
|
||||
expect(await screen.findByText('VIN-HISTORY-MILEAGE')).toBeInTheDocument();
|
||||
expect((await screen.findAllByText('VIN-HISTORY-MILEAGE')).length).toBeGreaterThan(0);
|
||||
const locationRow = screen.getByRole('row', { name: /VIN-HISTORY-MILEAGE/ });
|
||||
fireEvent.click(within(locationRow).getByRole('button', { name: '统计查询' }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user