feat(platform): add notification coverage board
This commit is contained in:
@@ -3595,6 +3595,13 @@ test('renders notification rules as a standalone operations page', async () => {
|
||||
expect(screen.getByText('确认平台转发')).toBeInTheDocument();
|
||||
expect(screen.getByText('通知规则页待通知告警')).toBeInTheDocument();
|
||||
expect(screen.getByText('platform-rules-test')).toBeInTheDocument();
|
||||
expect(screen.getByText('通知覆盖与升级风险')).toBeInTheDocument();
|
||||
expect(screen.getByText('责任覆盖')).toBeInTheDocument();
|
||||
expect(screen.getByText('活跃命中')).toBeInTheDocument();
|
||||
expect(screen.getByText('P0压力')).toBeInTheDocument();
|
||||
expect(screen.getByText('升级风险')).toBeInTheDocument();
|
||||
expect(screen.getByText('链路前置')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '复制通知覆盖报告' })).toBeInTheDocument();
|
||||
expect(fetchMock).toHaveBeenCalledWith(expect.stringContaining('/api/alert-events/notification-plan?limit=50'), undefined);
|
||||
|
||||
fireEvent.click(screen.getByRole('button', { name: '复制通知规则Runbook' }));
|
||||
@@ -3629,6 +3636,14 @@ test('renders notification rules as a standalone operations page', async () => {
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('执行态势:P0 1 / 已超时 1 / 证据不完整 0'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('通知:接入运维 + 业务责任人 / 邮件 / 企业微信'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('规则:无来源规则 / 平台接入'));
|
||||
fireEvent.click(screen.getByRole('button', { name: '复制通知覆盖报告' }));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【通知覆盖与升级风险】'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('责任覆盖:2 个责任方,2 类活跃规则'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('告警压力:待通知 1 / P0 1 / 证据不完整 0'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('升级风险:已超时 1 / 即将升级 0'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('通知渠道:邮件 / 企业微信;每日汇总邮件'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('平台接入'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('主策略:P0 实时中断 / 接入运维 + 业务责任人 / 邮件 / 企业微信'));
|
||||
fireEvent.click(screen.getByRole('button', { name: '复制SLA升级报告' }));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【告警SLA升级报告】'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('升级态势:已超时 1 / 即将升级 0 / 正常跟进 0'));
|
||||
|
||||
Reference in New Issue
Block a user