diff --git a/e2e/tests/helpers.ts b/e2e/tests/helpers.ts index 1d230b0..7dbc02f 100644 --- a/e2e/tests/helpers.ts +++ b/e2e/tests/helpers.ts @@ -319,7 +319,7 @@ export async function registerAndConfirm( await form.getByLabel("Email").fill(email); await form.getByLabel("Display name").fill(displayName); await form - .getByLabel("I am 18 or older and accept the safety rules") + .getByLabel("I am 18 or older and accept the Terms and Safety Rules") .check(); await form .getByRole("button", { name: "Create account and email me a link" }) @@ -400,6 +400,8 @@ export async function loginWithPassword( try { await gotoWithTransientRetry(page, "/users/log-in"); const form = page.locator("#login_form_password"); + await page.getByText("Use a password instead", { exact: true }).click(); + await expect(form).toBeVisible(); await form.getByLabel("Email").fill(email); await form.getByLabel("Password").fill(password); await expect(form.getByLabel("Password")).toHaveValue(password);