feat(platform): link realtime table map selection

This commit is contained in:
lingniu
2026-07-04 18:07:48 +08:00
parent 483d92719b
commit f840d8be4a
2 changed files with 27 additions and 5 deletions

View File

@@ -8329,6 +8329,12 @@ test('selects realtime map vehicle from fallback map point', async () => {
expect(within(selectedPanel as HTMLElement).getByText('粤A选中2')).toBeInTheDocument();
});
expect(within(selectedPanel as HTMLElement).getByText('42 km/h')).toBeInTheDocument();
const locateButtons = screen.getAllByRole('button', { name: '地图定位' });
fireEvent.click(locateButtons[0]);
expect(within(selectedPanel as HTMLElement).getByText('粤A选中1')).toBeInTheDocument();
fireEvent.click(locateButtons[1]);
expect(within(selectedPanel as HTMLElement).getByText('粤A选中2')).toBeInTheDocument();
});
test('opens vehicle service from realtime map service queue', async () => {