feat(platform): add fleet service journey strip
This commit is contained in:
@@ -11527,6 +11527,13 @@ test('shows realtime freshness status for recently updated and stale vehicles',
|
||||
expect(screen.getAllByText('更新超时').length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('车辆服务闭环')).toBeInTheDocument();
|
||||
expect(screen.getByText('客户从这里完成看车、选车、查轨迹、查历史、查统计、收告警和导出。')).toBeInTheDocument();
|
||||
expect(screen.getByText('车队服务旅程条')).toBeInTheDocument();
|
||||
expect(screen.getByText('把客户常用的四件事固定成一条路径:实时找车、轨迹复盘、里程核对、导出通知。')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '车队服务旅程条 1 实时找车 1 在线' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '车队服务旅程条 2 轨迹复盘 粤A超时1' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '车队服务旅程条 3 里程核对 1000 km' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '车队服务旅程条 4 导出通知 1 关注' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: /复制旅程交付包/ })).toBeInTheDocument();
|
||||
expect(screen.getByText('Live Map 决策条')).toBeInTheDocument();
|
||||
expect(screen.getByText('客户进来先判断四件事:哪些车在线、哪些车能定位、哪辆车要先处理、选中车辆下一步做什么。')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: 'Live Map 决策条 在线覆盖 1 / 2' })).toBeInTheDocument();
|
||||
@@ -11568,6 +11575,14 @@ test('shows realtime freshness status for recently updated and stale vehicles',
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('服务链路:实时找车 -> 轨迹回放 -> 围栏告警 -> 报表导出'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('实时地图:http://localhost:3000/#/map?'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('选中车辆:粤A超时1 / VIN-STALE-001 / JT808'));
|
||||
fireEvent.click(screen.getByRole('button', { name: /复制旅程交付包/ }));
|
||||
await waitFor(() => {
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【车队服务旅程交付包】'));
|
||||
});
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('实时找车:1 在线 / 2 当前页 / 2 总计'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('轨迹复盘:粤A超时1 / VIN-STALE-001 / JT808'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('里程核对:1000 km'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('导出通知:1 关注 / 1 更新超时'));
|
||||
fireEvent.click(screen.getByRole('button', { name: /复制地图监控包/ }));
|
||||
await waitFor(() => {
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【客户地图监控包】'));
|
||||
|
||||
Reference in New Issue
Block a user