mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
test(e2e): follow the checklist's visit link to the visits tab
This commit is contained in:
1 parent
2ec62e9d66
commit
aaf826290f
1 file changed
+3
-1
@@ -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", {
|
||||
|
||||
Reference in new issue
Block a user