Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Assert the full History tooltip geometry

pulse-triage[bot]6ec5efe0f814
diff --git a/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx b/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx
index 08e043b79f..fc4ba20ffa 100644
--- a/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx
@@ -322,7 +322,8 @@ describe('HistoryChart', () => {
expect(layout.x).toBe(162);
expect(layout.x).toBeGreaterThan(150);
- expect(layout.y).toBe(47);
+ expect(layout.height).toBe(64);
+ expect(layout.y + layout.height / 2).toBe(70);
});
it('moves the tooltip to the left edge side near the right chart boundary', () => {