feat(platform): separate history capability entry

This commit is contained in:
lingniu
2026-07-04 14:28:27 +08:00
parent c03e890096
commit f6710514e3
3 changed files with 11 additions and 3 deletions

View File

@@ -395,11 +395,13 @@ test('dashboard exposes vehicle data center capability matrix', async () => {
await renderDashboard();
fireEvent.click(screen.getByRole('button', { name: '能力入口 轨迹回放' }));
expect(window.location.hash.startsWith('#/history')).toBe(true);
expect(new URLSearchParams(window.location.hash.split('?')[1] ?? '').get('tab')).toBeNull();
cleanup();
await renderDashboard();
fireEvent.click(screen.getByRole('button', { name: '能力入口 历史数据查询' }));
expect(window.location.hash.startsWith('#/history')).toBe(true);
expect(new URLSearchParams(window.location.hash.split('?')[1] ?? '').get('tab')).toBe('raw');
cleanup();
await renderDashboard();