test(e2e): follow the checklist's visit link to the visits tab

This commit is contained in:
Marc-André Bombeck committed 2026-10-21 17:27:53 +02:00
1 parent 2ec62e9d66
commit aaf826290f
1 file changed
+3 -1
+3 -1
View File
@@ -77,7 +77,9 @@ test.describe("setup flow — a visit within a month, with labs", () => {
await expect(checklist.locator("#getting-started-body")).toBeVisible();
const visitRow = checklist.locator('li[data-item-id="visit"]');
await expect(visitRow).toHaveAttribute("data-done", "false");
await expect(visitRow.locator('a[href="/checkups"]')).toBeVisible();
await expect(
visitRow.locator('a[href="/checkups?view=visits"]'),
).toBeVisible();
// Book the visit; the row reads the visits list's own body and flips.
const booked = await page.request.post("/api/encounters", {