feat(platform): add alert dispatch board

This commit is contained in:
lingniu
2026-07-04 21:10:58 +08:00
parent 09c86022b2
commit 0fff9e3890
3 changed files with 114 additions and 0 deletions

View File

@@ -3172,6 +3172,10 @@ test('shows alert rule and notification policy workspace on quality page', async
expect(screen.getByText('3 类 P0')).toBeInTheDocument();
expect(screen.getByText('容量与存储风险')).toBeInTheDocument();
expect(screen.getByText('15 分钟恢复')).toBeInTheDocument();
expect(screen.getByText('告警分派看板')).toBeInTheDocument();
expect(screen.getByRole('button', { name: '分派团队 平台接入' })).toHaveTextContent('2 条');
expect(screen.getByRole('button', { name: '分派团队 车辆档案' })).toHaveTextContent('主问题VIN 缺失');
expect(screen.getByRole('button', { name: '分派团队 基础设施' })).toHaveTextContent('SLA15 分钟恢复');
expect(screen.getByText('通知策略')).toBeInTheDocument();
expect(screen.getByText('P0 实时中断')).toBeInTheDocument();
expect(screen.getByText('接入运维 + 业务责任人')).toBeInTheDocument();
@@ -3185,6 +3189,8 @@ test('shows alert rule and notification policy workspace on quality page', async
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('P0 实时中断 / 接入运维 + 业务责任人'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('升级30 分钟升级'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('验收:来源恢复并持续 10 分钟,车辆服务可查到实时与历史证据'));
fireEvent.click(screen.getByRole('button', { name: '分派团队 车辆档案' }));
expect(window.location.hash).toBe('#/alert-events?issueType=VIN_MISSING');
});
test('shows actionable priority queue on quality page', async () => {