Update public E2E authentication selectors
Some checks are pending
Quality / full-local-gates (push) Waiting to run
Some checks are pending
Quality / full-local-gates (push) Waiting to run
This commit is contained in:
parent
421d5466f7
commit
562a1f5cdf
|
|
@ -319,7 +319,7 @@ export async function registerAndConfirm(
|
||||||
await form.getByLabel("Email").fill(email);
|
await form.getByLabel("Email").fill(email);
|
||||||
await form.getByLabel("Display name").fill(displayName);
|
await form.getByLabel("Display name").fill(displayName);
|
||||||
await form
|
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();
|
.check();
|
||||||
await form
|
await form
|
||||||
.getByRole("button", { name: "Create account and email me a link" })
|
.getByRole("button", { name: "Create account and email me a link" })
|
||||||
|
|
@ -400,6 +400,8 @@ export async function loginWithPassword(
|
||||||
try {
|
try {
|
||||||
await gotoWithTransientRetry(page, "/users/log-in");
|
await gotoWithTransientRetry(page, "/users/log-in");
|
||||||
const form = page.locator("#login_form_password");
|
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("Email").fill(email);
|
||||||
await form.getByLabel("Password").fill(password);
|
await form.getByLabel("Password").fill(password);
|
||||||
await expect(form.getByLabel("Password")).toHaveValue(password);
|
await expect(form.getByLabel("Password")).toHaveValue(password);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user