From 2d1f3fef1ec1a7bce1826d7dc61f15b3fe046741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 31 Oct 2026 11:25:41 +0100 Subject: [PATCH] test(e2e): say what is known about the missed lab-reading focus The comment named a cause that was never observed. --- e2e/timeline.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/e2e/timeline.spec.ts b/e2e/timeline.spec.ts index 4ade3ce8b..ad5f3d0c7 100644 --- a/e2e/timeline.spec.ts +++ b/e2e/timeline.spec.ts @@ -866,8 +866,9 @@ test("a lab marker is picked, drawn as its readings, read on its own and kept", '[data-slot="timeline-point-target"][data-series="lab:bm-ferritin"][data-t="fe-1"]', ); const tip = page.locator('[data-slot="timeline-point-tip"]'); - // The chart redraws its targets once the marker's readings arrive, and a - // target focused just before that is gone; focus the one that stays. + // A CI run focused the target and no tip opened. The cause is not pinned + // down (the tips layer unmounts while the chart has no layout, which is + // one candidate); focus again until the tip opens. await expect(async () => { await target.focus(); await expect(tip).toHaveAttribute("data-t", "fe-1", { timeout: 1_000 });