feat(platform): include release in alert digest

This commit is contained in:
lingniu
2026-07-04 15:46:22 +08:00
parent eaf7fcaa0e
commit ef45a75612
2 changed files with 7 additions and 3 deletions

View File

@@ -3338,7 +3338,7 @@ test('copies priority queue notification digest on quality page', async () => {
return {
ok: true,
json: async () => ({
data: { linkHealth: [], kafkaLag: 0, activeConnections: 120000, capacityFindings: [], redisOnlineKeys: 368, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000 } },
data: { linkHealth: [], kafkaLag: 0, activeConnections: 120000, capacityFindings: [], redisOnlineKeys: 368, tdengineWritable: true, mysqlWritable: true, runtime: { platformRelease: 'platform-20260704153951', requestTimeoutMs: 5000 } },
traceId: 'trace-test',
timestamp: 1783094400000
})
@@ -3412,9 +3412,11 @@ test('copies priority queue notification digest on quality page', async () => {
render(<App />);
expect(await screen.findByText('处置优先队列')).toBeInTheDocument();
expect(await screen.findByText('platform-20260704153951')).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '复制优先队列通知汇总' }));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【告警优先队列汇总】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('运行版本platform-20260704153951'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('P01 条P11 条'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('1. [P0] 粤A汇总1 / VIN-DIGEST-001'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('确认平台转发'));