refine Semi UI track replay summary

This commit is contained in:
lingniu
2026-07-18 18:21:25 +08:00
parent 5bfdc7f637
commit 23669d8190
4 changed files with 88 additions and 5 deletions

View File

@@ -227,7 +227,9 @@ test('renders a map-first replay workspace and connects stop, event, and panel i
expect(screen.queryByRole('textbox', { name: '搜索轨迹车辆' })).not.toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '隐藏查询与明细' }));
expect(screen.getByRole('button', { name: '打开轨迹详情' })).toBeInTheDocument();
const expandRail = screen.getByRole('button', { name: '打开轨迹详情' });
expect(expandRail).toBeInTheDocument();
expect(expandRail).toHaveTextContent('轨迹详情8 km · 1 个停留');
fireEvent.click(screen.getByRole('button', { name: '打开轨迹详情' }));
expect(screen.getByRole('button', { name: '隐藏查询与明细' })).toBeInTheDocument();