mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
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.
This commit is contained in:
1 parent
879473305c
commit
7405e41119
1 file changed
+7
-1
@@ -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<void> {
|
||||
await page.goto("/measurements");
|
||||
await page.goto("/measurements?type=BLOOD_GLUCOSE");
|
||||
await expect(page.locator(LIST_SETTLED).first()).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user