feat(platform): add alert escalation checklist

This commit is contained in:
lingniu
2026-07-04 20:06:35 +08:00
parent 06d9dc1562
commit 7a2a8e8a83
2 changed files with 51 additions and 1 deletions

View File

@@ -3459,6 +3459,16 @@ test('renders notification rules as a standalone operations page', async () => {
fireEvent.click(screen.getByRole('button', { name: '复制待通知汇总' }));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【当前待通知告警】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('粤A规则1 / VIN-RULES-001'));
fireEvent.click(screen.getByRole('button', { name: '复制升级值班清单' }));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【告警升级值班清单】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('值班结论P0 1 条,需要立即确认'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('主通知策略P0 实时中断 / 接入运维 + 业务责任人 / 邮件 / 企业微信'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('升级窗口30 分钟升级'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('1. [P0] 无来源规则 / 平台接入 / 命中 3 / SLA 30 分钟确认'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('建议动作:确认平台转发 - 核对平台转发配置'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('车辆服务http://localhost:3000/#/detail?keyword=VIN-RULES-001'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('RAW证据http://localhost:3000/#/history-query?keyword=VIN-RULES-001&tab=raw'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('超过升级窗口未恢复时'));
fireEvent.click(screen.getByRole('button', { name: '复制单条告警通知' }));
expect(writeText).toHaveBeenCalledWith('【P0 告警通知】通知规则页待通知');
fireEvent.click(screen.getByRole('button', { name: '车辆服务' }));