feat(platform): add map vehicle handoff card

This commit is contained in:
lingniu
2026-07-06 00:41:55 +08:00
parent c00cb0218a
commit b8199dcb5a
3 changed files with 51 additions and 1 deletions

View File

@@ -10771,6 +10771,15 @@ test('shows realtime freshness status for recently updated and stale vehicles',
expect(screen.getByRole('button', { name: '地图选中车辆 轨迹复盘 打开轨迹' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图选中车辆 统计查询 统计查询' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图选中车辆 数据导出 历史导出' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '地图选中车辆 交接卡 复制交接' })).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '地图选中车辆 交接卡 复制交接' }));
await waitFor(() => {
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【地图选中车辆交接卡】'));
});
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('车辆粤A超时1 / VIN-STALE-001 / JT808'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('问题:'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('天未更新JT808 离线'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('车辆服务http://localhost:3000/#/detail?keyword=VIN-STALE-001&protocol=JT808'));
fireEvent.click(screen.getByRole('button', { name: /复制地图监控包/ }));
await waitFor(() => {
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【客户地图监控包】'));