feat(platform): surface selected vehicle map actions
This commit is contained in:
@@ -9330,6 +9330,12 @@ test('shows realtime freshness status for recently updated and stale vehicles',
|
||||
expect(screen.getAllByText('选中车辆').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getByText('车辆列表')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('1 辆更新超时').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getByText('选中车辆服务')).toBeInTheDocument();
|
||||
expect(screen.getByText('客户在地图上选中车辆后,直接进入车辆档案、轨迹回放、里程核对、数据导出和告警处置。')).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();
|
||||
fireEvent.click(screen.getByRole('button', { name: /复制地图监控包/ }));
|
||||
await waitFor(() => {
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【客户地图监控包】'));
|
||||
|
||||
Reference in New Issue
Block a user