feat(platform): add ops capacity action board
This commit is contained in:
@@ -3645,6 +3645,10 @@ test('renders ops quality as a standalone runtime health page', async () => {
|
||||
expect(screen.getByText('历史行待写')).toBeInTheDocument();
|
||||
expect(screen.getByText('1,482,047')).toBeInTheDocument();
|
||||
expect(screen.getByText('4,000')).toBeInTheDocument();
|
||||
expect(screen.getByText('容量风险处置工作台')).toBeInTheDocument();
|
||||
expect(screen.getByText('稳定 NATS 到 Kafka 桥接')).toBeInTheDocument();
|
||||
expect(screen.getByText('恢复核心存储可写')).toBeInTheDocument();
|
||||
expect(screen.getByText(/历史待写 320 行/)).toBeInTheDocument();
|
||||
expect(screen.getByText('Kafka lag 42')).toBeInTheDocument();
|
||||
expect(screen.getByText('NATS 桥接 ACK 未确认')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('NATS 桥接待消费').length).toBeGreaterThanOrEqual(1);
|
||||
@@ -3658,6 +3662,11 @@ test('renders ops quality as a standalone runtime health page', async () => {
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('NATS桥接:consumer pending 1,482,047 / ack pending 4,000'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('存储状态:TDengine 正常 / MySQL 异常'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('1. 先看 Kafka Lag 与 NATS ACK pending'));
|
||||
|
||||
fireEvent.click(screen.getByRole('button', { name: '复制处置计划' }));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【车辆数据中台容量处置计划】'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('P0 稳定 NATS 到 Kafka 桥接'));
|
||||
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('负责人:数据库 / 应用'));
|
||||
});
|
||||
|
||||
test('copies notification text from quality priority queue', async () => {
|
||||
|
||||
Reference in New Issue
Block a user