feat(platform): add customer alert SLA view
This commit is contained in:
@@ -3730,7 +3730,7 @@ test('shows alert rule and notification policy workspace on quality page', async
|
||||
expect(screen.getAllByText('P0 实时中断').length).toBeGreaterThan(0);
|
||||
expect(screen.getAllByText('接入运维 + 业务责任人').length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('站内告警 / 邮件 / 企业微信')).toBeInTheDocument();
|
||||
expect(screen.getByText('30 分钟升级')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('30 分钟升级').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getByText('验收:来源恢复并持续 10 分钟,车辆服务可查到实时与历史证据')).toBeInTheDocument();
|
||||
|
||||
fireEvent.click(screen.getByRole('button', { name: '复制业务影响报告' }));
|
||||
@@ -3962,7 +3962,7 @@ test('uses backend quality notification plan on quality page', async () => {
|
||||
expect(screen.getAllByText('后端建议动作').length).toBeGreaterThan(0);
|
||||
expect(screen.getAllByText('10 分钟确认').length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('后端无来源规则')).toBeInTheDocument();
|
||||
expect(screen.getByText('后端 P0 通知策略')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('后端 P0 通知策略').length).toBeGreaterThan(0);
|
||||
expect(fetchMock).toHaveBeenCalledWith(expect.stringContaining('/api/alert-events/notification-plan?limit=20'), undefined);
|
||||
});
|
||||
|
||||
@@ -4600,7 +4600,16 @@ test('copies priority queue notification digest on quality page', async () => {
|
||||
|
||||
expect(await screen.findByText('处置优先队列')).toBeInTheDocument();
|
||||
expect(await screen.findByText('platform-20260704153951')).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole('button', { name: '复制通知交接包' }));
|
||||
expect(screen.getByText('客户通知 SLA')).toBeInTheDocument();
|
||||
expect(screen.getByText('把告警翻译成客户能理解的通知、时限和恢复标准')).toBeInTheDocument();
|
||||
expect(screen.getByText('每一条告警都先回答影响哪些车、通知谁、多久升级、恢复后如何验收;链路、协议和原始记录只作为证据附件。')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户通知SLA 客户影响范围 影响摘要' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户通知SLA 通知负责人 通知规则' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户通知SLA 升级时限 复制策略' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户通知SLA 恢复验收 交接包' })).toBeInTheDocument();
|
||||
expect(screen.getAllByText('接入运维 + 业务责任人').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('30 分钟升级').length).toBeGreaterThanOrEqual(1);
|
||||
fireEvent.click(screen.getAllByRole('button', { name: '复制通知交接包' })[0]);
|
||||
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【告警通知交接包】'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('运行版本:platform-20260704153951'));
|
||||
|
||||
Reference in New Issue
Block a user