feat(platform): add alert notification drill package

This commit is contained in:
lingniu
2026-07-04 20:34:15 +08:00
parent e6188e2569
commit c0b99e9a3a
2 changed files with 54 additions and 1 deletions

View File

@@ -3481,6 +3481,14 @@ test('renders notification rules as a standalone operations page', async () => {
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(expect.stringContaining('【告警通知演练包】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('运行版本platform-rules-test'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('规则规模P0 1 类P1 1 类,待通知 1 条'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('P0策略P0 实时中断 / 接入运维 + 业务责任人 / 邮件 / 企业微信 / 30 分钟升级'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('2. 对第一条待通知告警打开车辆服务、实时、轨迹、RAW 四类证据'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('通知文本【P0 告警通知】通知规则页待通知'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('轨迹证据http://localhost:3000/#/history?keyword=VIN-RULES-001'));
fireEvent.click(screen.getByRole('button', { name: '复制单条告警通知' }));
expect(writeText).toHaveBeenCalledWith('【P0 告警通知】通知规则页待通知');
fireEvent.click(screen.getByRole('button', { name: '车辆服务' }));