From 7405e41119af87da72ae0c8ec9dd03559377d18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 23 Oct 2026 20:40:31 +0200 Subject: [PATCH] test(e2e): read the glucose journey's list filtered to glucose The journey counted glucose rows on the unfiltered list, which shows the account's newest page of every type. Other specs keep writing readings to the same account, so on a database a few runs old the reading typed for yesterday fell off that page and the count read one short. The list now opens with `?type=BLOOD_GLUCOSE`, so it holds exactly the rows the spec owns. --- e2e/glucose-journey.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e2e/glucose-journey.spec.ts b/e2e/glucose-journey.spec.ts index b8f545b22..fc47fe6c5 100644 --- a/e2e/glucose-journey.spec.ts +++ b/e2e/glucose-journey.spec.ts @@ -62,8 +62,14 @@ function decimal(value: string): RegExp { return new RegExp(value.replace(".", "[.,]")); } +/** + * The list, filtered to blood glucose. Unfiltered it shows the account's + * newest page of every type, and other specs keep writing readings to the + * same account, so on a database a few runs old a reading typed for + * "yesterday" falls off that page and the count reads one short. + */ async function openList(page: Page): Promise { - await page.goto("/measurements"); + await page.goto("/measurements?type=BLOOD_GLUCOSE"); await expect(page.locator(LIST_SETTLED).first()).toBeVisible({ timeout: 30_000, });