Anchor the Playwright login helper on the health heading

The greeting it waited for was removed from Home in 887e552.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SKL7sUgNWhukDEz95vSMQv
This commit is contained in:
2026-08-20 12:56:37 +02:00
co-authored by Claude Opus 5
parent ba004082c8
commit 346da17da0
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ export async function logInUser(page: Page, email: string, password: string) {
await page.getByTestId("password-input").fill(password)
await page.getByRole("button", { name: "Log In" }).click()
await page.waitForURL("/")
// The greeting is the one part of the dashboard that is there whether or not
// any flows are.
await expect(page.getByRole("heading", { name: /^Hi, / })).toBeVisible()
// The health heading is the one part of the dashboard that is there whether
// or not any flows are.
await expect(page.getByRole("heading", { name: "Health" })).toBeVisible()
}