From 6ec5efe0f814f2ce9ed8f2a616bcd5c6872dc136 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 16:04:03 +0100 Subject: [PATCH] Assert the full History tooltip geometry Update the prior fixed-height assertion for the taller wrapped-timestamp tooltip and verify its centre remains aligned with the selected sample. Contract-Neutral: Test-only geometry expectation for the keyboard inspection contract already updated in the parent; no runtime or interface delta. Change-source: pulse-maintainer --- .../src/components/shared/__tests__/HistoryChart.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', () => {