feat(platform): center console on vehicle service
This commit is contained in:
@@ -12,7 +12,7 @@ afterEach(() => {
|
||||
test('renders vehicle platform shell', () => {
|
||||
render(<App />);
|
||||
expect(screen.getByText('车辆服务中台')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('运营驾驶舱').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getAllByText('车辆服务总览').length).toBeGreaterThanOrEqual(1);
|
||||
});
|
||||
|
||||
test('exposes AMap operations shortcuts when map key is configured', async () => {
|
||||
@@ -345,7 +345,7 @@ test('dashboard presents one vehicle service operating posture', async () => {
|
||||
|
||||
render(<App />);
|
||||
|
||||
expect(await screen.findByText('统一车辆服务')).toBeInTheDocument();
|
||||
expect(await screen.findByText('统一车辆服务入口')).toBeInTheDocument();
|
||||
expect(screen.getByText('208 / 1,033 在线')).toBeInTheDocument();
|
||||
expect(screen.getByText('181 多源覆盖')).toBeInTheDocument();
|
||||
expect(screen.getByText('7 告警事件')).toBeInTheDocument();
|
||||
@@ -448,7 +448,7 @@ test('dashboard exposes vehicle data center capability matrix', async () => {
|
||||
const renderDashboard = async () => {
|
||||
window.history.replaceState(null, '', '/#/dashboard');
|
||||
render(<App />);
|
||||
expect(await screen.findByText('车联网能力矩阵')).toBeInTheDocument();
|
||||
expect(await screen.findByText('车辆服务能力矩阵')).toBeInTheDocument();
|
||||
};
|
||||
|
||||
await renderDashboard();
|
||||
@@ -3374,7 +3374,12 @@ test('renders ops quality as a standalone runtime health page', async () => {
|
||||
],
|
||||
kafkaLag: 42,
|
||||
activeConnections: 1234,
|
||||
capacityFindings: ['Kafka lag 42', 'Redis online key below expected'],
|
||||
capacityFindings: [
|
||||
'Kafka lag 42',
|
||||
'bridge ack pending 4000 exceeds 100',
|
||||
'bridge consumer pending 1482047 exceeds 10000',
|
||||
'Redis online key below expected'
|
||||
],
|
||||
redisOnlineKeys: 368,
|
||||
tdengineWritable: true,
|
||||
mysqlWritable: false,
|
||||
@@ -3407,7 +3412,7 @@ test('renders ops quality as a standalone runtime health page', async () => {
|
||||
|
||||
expect(await screen.findByRole('heading', { name: '运维质量' })).toBeInTheDocument();
|
||||
expect(screen.getByText('platform-ops-test')).toBeInTheDocument();
|
||||
expect(screen.getByText('42')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('42').length).toBeGreaterThanOrEqual(1);
|
||||
expect(screen.getByText('1,234')).toBeInTheDocument();
|
||||
expect(screen.getByText('368')).toBeInTheDocument();
|
||||
expect(screen.getByText('TDengine 写入')).toBeInTheDocument();
|
||||
@@ -3417,6 +3422,9 @@ test('renders ops quality as a standalone runtime health page', async () => {
|
||||
expect(screen.getByText('安全码未暴露')).toBeInTheDocument();
|
||||
expect(screen.getByText('gb32960-gateway')).toBeInTheDocument();
|
||||
expect(screen.getByText('Kafka lag 42')).toBeInTheDocument();
|
||||
expect(screen.getByText('NATS 桥接 ACK 未确认')).toBeInTheDocument();
|
||||
expect(screen.getByText('NATS 桥接待消费')).toBeInTheDocument();
|
||||
expect(screen.getByText('桥接处置顺序')).toBeInTheDocument();
|
||||
expect(fetchMock).toHaveBeenCalledWith(expect.stringContaining('/api/ops/health'), undefined);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user