test(e2e): say what is known about the missed lab-reading focus

The comment named a cause that was never observed.
This commit is contained in:
Marc-André Bombeck committed 2026-10-31 11:25:41 +01:00
1 parent 3d5d5fc4ff
commit 2d1f3fef1e
1 file changed
+3 -2
+3 -2
View File
@@ -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 });