feat(platform): add alert dispatch board
This commit is contained in:
@@ -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('SLA:15 分钟恢复');
|
||||
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 () => {
|
||||
|
||||
Reference in New Issue
Block a user