feat(platform): add realtime source coverage board
This commit is contained in:
@@ -8511,6 +8511,10 @@ test('copies realtime operations summary from realtime page', async () => {
|
||||
expect(screen.getByRole('button', { name: '实时筛选 降级服务 2' })).toBeInTheDocument();
|
||||
expect(screen.getByText('建议处置')).toBeInTheDocument();
|
||||
expect(screen.getByText('排查降级服务 2')).toBeInTheDocument();
|
||||
expect(screen.getByText('协议地图覆盖')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '筛选协议 GB32960' })).toHaveTextContent('GB32960');
|
||||
expect(screen.getByRole('button', { name: '筛选协议 JT808' })).toHaveTextContent('2 辆');
|
||||
expect(screen.getByRole('button', { name: '筛选协议 YUTONG_MQTT' })).toHaveTextContent('超时 1');
|
||||
expect(screen.getByText('实时覆盖判读')).toBeInTheDocument();
|
||||
expect(screen.getByText('在线率')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('66.7%').length).toBeGreaterThanOrEqual(3);
|
||||
@@ -8552,6 +8556,8 @@ test('copies realtime operations summary from realtime page', async () => {
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('历史RAW:http://localhost:3000/api/history/raw-frames?protocol=JT808&vin=VIN-RT-SUMMARY-003&limit=20&includeFields=true'));
|
||||
fireEvent.click(screen.getByRole('button', { name: '实时筛选 降级服务 2' }));
|
||||
expect(window.location.hash).toBe('#/realtime?protocol=JT808&serviceStatus=degraded&online=online');
|
||||
fireEvent.click(screen.getByRole('button', { name: '筛选协议 GB32960' }));
|
||||
expect(window.location.hash).toBe('#/realtime?protocol=GB32960&serviceStatus=degraded&online=online');
|
||||
});
|
||||
|
||||
test('shows production AMap integration status on realtime page', async () => {
|
||||
|
||||
Reference in New Issue
Block a user