feat(platform): frame notifications as customer closure

This commit is contained in:
lingniu
2026-07-05 20:45:22 +08:00
parent 1e4a11d806
commit 2b246f414e
4 changed files with 15 additions and 14 deletions

View File

@@ -4279,7 +4279,8 @@ test('renders notification rules as a standalone operations page', async () => {
render(<App />);
expect(await screen.findByRole('heading', { name: '通知规则' })).toBeInTheDocument();
expect(await screen.findByRole('heading', { name: '通知闭环' })).toBeInTheDocument();
expect(screen.getByText('面向客户交付告警影响、通知对象、升级时限和恢复验收;规则配置只作为闭环背后的证据。')).toBeInTheDocument();
expect(screen.getByText('客户告警闭环')).toBeInTheDocument();
expect(screen.getByText('从告警触发到通知升级,再到验收恢复')).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户告警闭环 发现问题 告警队列' })).toBeInTheDocument();
@@ -4845,7 +4846,7 @@ test('copies priority queue notification digest on quality page', async () => {
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.getByRole('button', { name: '客户通知SLA 恢复验收 交接包' })).toBeInTheDocument();
expect(screen.getAllByText('接入运维 + 业务责任人').length).toBeGreaterThanOrEqual(1);
@@ -4864,7 +4865,7 @@ test('copies priority queue notification digest on quality page', async () => {
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('实时http://localhost:3000/#/realtime?keyword=VIN-DIGEST-001&protocol=VEHICLE_SERVICE'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('原始记录http://localhost:3000/#/history-query?keyword=VIN-DIGEST-001&protocol=VEHICLE_SERVICE&tab=raw&dateFrom=2026-07-03&dateTo=2026-07-04&includeFields=true'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('2. [P1] 粤A汇总2 / 13307795426'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('通知规则http://localhost:3000/#/notification-rules'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('通知闭环http://localhost:3000/#/notification-rules'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('运维质量http://localhost:3000/#/ops-quality'));
fireEvent.click(screen.getByRole('button', { name: '复制优先队列通知汇总' }));