feat(platform): separate history capability entry
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user