feat(platform): show release in topbar

This commit is contained in:
lingniu
2026-07-04 15:37:48 +08:00
parent ff36cb4bd1
commit d72da88c3f
3 changed files with 19 additions and 3 deletions

View File

@@ -23,7 +23,14 @@ test('exposes AMap operations shortcuts when map key is configured', async () =>
return {
ok: true,
json: async () => ({
data: { linkHealth: [], kafkaLag: 0, redisOnlineKeys: 0, tdengineWritable: true, mysqlWritable: true, runtime: { requestTimeoutMs: 5000 } },
data: {
linkHealth: [],
kafkaLag: 0,
redisOnlineKeys: 0,
tdengineWritable: true,
mysqlWritable: true,
runtime: { requestTimeoutMs: 5000, platformRelease: 'platform-20260704153357' }
},
traceId: 'trace-test',
timestamp: 1783094400000
})
@@ -72,6 +79,7 @@ test('exposes AMap operations shortcuts when map key is configured', async () =>
render(<App />);
expect(await screen.findByText('地图就绪')).toBeInTheDocument();
expect(screen.getByText('版本 platform-20260704153357')).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: '顶部实时监控' }));
expect(window.location.hash).toBe('#/realtime');
fireEvent.click(screen.getByRole('button', { name: '顶部轨迹回放' }));