feat(platform): add alert recovery acceptance
This commit is contained in:
@@ -3810,6 +3810,12 @@ test('shows alert rule and notification policy workspace on quality page', async
|
||||
expect(screen.getByRole('button', { name: '通知渠道闭环 企业微信 复制交接包' })).toBeInTheDocument();
|
||||
expect(screen.getAllByText('接入运维 + 业务责任人').length).toBeGreaterThan(1);
|
||||
expect(screen.getAllByText('无来源、VIN 缺失、存储不可写').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getByText('客户恢复验收台')).toBeInTheDocument();
|
||||
expect(screen.getByText('告警恢复不是把状态改绿,而是要证明客户能重新看实时、查轨迹、核里程、导出证据,并留下一份恢复回执。')).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户恢复验收台 实时恢复 实时确认' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户恢复验收台 轨迹恢复 轨迹复核' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户恢复验收台 里程恢复 里程核对' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '客户恢复验收台 客户回执 复制回执' })).toBeInTheDocument();
|
||||
|
||||
fireEvent.click(screen.getByRole('button', { name: '复制业务影响报告' }));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【告警业务影响报告】'));
|
||||
@@ -3825,6 +3831,10 @@ test('shows alert rule and notification policy workspace on quality page', async
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('P0 实时中断 / 接入运维 + 业务责任人'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('升级:30 分钟升级'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('验收:来源恢复并持续 10 分钟,车辆服务可查到实时与历史证据'));
|
||||
fireEvent.click(screen.getByRole('button', { name: '客户恢复验收台 客户回执 复制回执' }));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【客户告警恢复验收回执】'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('恢复标准:实时可看 / 轨迹可回放 / 里程可核对 / 历史证据可导出'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('当前影响:3 辆车 / 5 条告警 / 高风险'));
|
||||
fireEvent.click(screen.getByRole('button', { name: '分派团队 车辆档案' }));
|
||||
expect(window.location.hash).toBe('#/alert-events?issueType=VIN_MISSING');
|
||||
});
|
||||
@@ -3935,7 +3945,7 @@ test('shows actionable priority queue on quality page', async () => {
|
||||
expect(await screen.findByText('处置优先队列')).toBeInTheDocument();
|
||||
expect(screen.getByText('车辆风险处置任务板')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('粤A优先1 / VIN-P0-001').length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('实时确认')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('实时确认').length).toBeGreaterThan(0);
|
||||
expect(screen.getAllByText('轨迹证据').length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('里程复核')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('原始证据').length).toBeGreaterThan(0);
|
||||
|
||||
Reference in New Issue
Block a user