feat(platform): reshape telematics operations console
This commit is contained in:
@@ -2747,7 +2747,7 @@ test('shows vehicle context when opening detail from sidebar navigation', async
|
||||
|
||||
render(<App />);
|
||||
|
||||
fireEvent.click(screen.getAllByText('车辆详情')[0]);
|
||||
fireEvent.click(screen.getAllByText('车辆档案')[0]);
|
||||
|
||||
expect(await screen.findByText('粤AGQ8398 / LB9A32A24R0LS1426')).toBeInTheDocument();
|
||||
expect(screen.getByText('当前车辆:车辆离线')).toBeInTheDocument();
|
||||
@@ -3807,7 +3807,9 @@ test('frames realtime page as one vehicle service with source evidence', async (
|
||||
|
||||
render(<App />);
|
||||
|
||||
expect(await screen.findByRole('heading', { name: '车辆服务实时态' })).toBeInTheDocument();
|
||||
expect(await screen.findByRole('heading', { name: '实时监控' })).toBeInTheDocument();
|
||||
expect(screen.getByText('高德地图待配置')).toBeInTheDocument();
|
||||
expect(screen.getByText('定位有效')).toBeInTheDocument();
|
||||
expect(screen.getByText('车辆核心数据')).toBeInTheDocument();
|
||||
expect(screen.getByText('来源证据')).toBeInTheDocument();
|
||||
expect(screen.getByText('GB32960 在线')).toBeInTheDocument();
|
||||
@@ -3933,7 +3935,7 @@ test('updates realtime hash when source filters are submitted', async () => {
|
||||
|
||||
render(<App />);
|
||||
|
||||
await screen.findByRole('heading', { name: '车辆服务实时态' });
|
||||
await screen.findByRole('heading', { name: '实时监控' });
|
||||
fireEvent.change(screen.getByPlaceholderText('VIN / 车牌 / 手机号 / OEM'), { target: { value: '粤ART002' } });
|
||||
fireEvent.click(screen.getByText('全部来源'));
|
||||
fireEvent.click(await screen.findByText('JT808'));
|
||||
@@ -4613,7 +4615,9 @@ test('opens quality governance from vehicle detail overview', async () => {
|
||||
await waitFor(() => {
|
||||
expect(window.location.hash).toBe('#/quality?keyword=VIN001');
|
||||
});
|
||||
expect(await screen.findByRole('heading', { name: '质量治理' })).toBeInTheDocument();
|
||||
expect(await screen.findByRole('heading', { name: '告警通知' })).toBeInTheDocument();
|
||||
expect(screen.getByText('告警通知闭环')).toBeInTheDocument();
|
||||
expect(screen.getByText('事件触发')).toBeInTheDocument();
|
||||
expect(fetchMock).toHaveBeenCalledWith(expect.stringContaining('/api/quality/issues?keyword=VIN001&limit=20&offset=0'), undefined);
|
||||
});
|
||||
|
||||
@@ -4638,7 +4642,7 @@ test('quality health storage card stays pending before ops health loads', async
|
||||
|
||||
render(<App />);
|
||||
|
||||
expect(await screen.findByRole('heading', { name: '质量治理' })).toBeInTheDocument();
|
||||
expect(await screen.findByRole('heading', { name: '告警通知' })).toBeInTheDocument();
|
||||
expect(screen.getByText('存储读取')).toBeInTheDocument();
|
||||
expect(screen.getByText('检测中')).toBeInTheDocument();
|
||||
expect(screen.queryByText('异常')).not.toBeInTheDocument();
|
||||
@@ -4664,7 +4668,7 @@ test('quality health shows active connection capacity metric', async () => {
|
||||
|
||||
render(<App />);
|
||||
|
||||
expect(await screen.findByRole('heading', { name: '质量治理' })).toBeInTheDocument();
|
||||
expect(await screen.findByRole('heading', { name: '告警通知' })).toBeInTheDocument();
|
||||
expect(await screen.findByText('活跃连接')).toBeInTheDocument();
|
||||
expect(screen.getByText('120,000')).toBeInTheDocument();
|
||||
});
|
||||
@@ -4689,7 +4693,7 @@ test('quality health shows structured capacity findings', async () => {
|
||||
|
||||
render(<App />);
|
||||
|
||||
expect(await screen.findByRole('heading', { name: '质量治理' })).toBeInTheDocument();
|
||||
expect(await screen.findByRole('heading', { name: '告警通知' })).toBeInTheDocument();
|
||||
expect(await screen.findByText('容量检查发现')).toBeInTheDocument();
|
||||
expect(screen.getByText('kafka lag 42')).toBeInTheDocument();
|
||||
});
|
||||
@@ -5615,7 +5619,7 @@ test('shows canonical vehicle archive on detail', async () => {
|
||||
|
||||
render(<App />);
|
||||
|
||||
expect(await screen.findByText('车辆档案')).toBeInTheDocument();
|
||||
expect((await screen.findAllByText('车辆档案')).length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('车辆主键')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('VIN-ARCHIVE-001').length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('档案完整度')).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user