Migrate user-onboarding-*.spec.ts from Cypress to Playwright (#11927)
Co-authored-by: R Midhun Suresh <hi@midhun.dev> Co-authored-by: Johannes Marbach <johannesm@element.io> Co-authored-by: Milton Moura <miltonmoura@gmail.com>
This commit is contained in:
committed by
GitHub
parent
87f1ae4665
commit
d827723b3d
@@ -43,7 +43,7 @@ export async function doTokenRegistration(
|
||||
|
||||
// Synapse prompts us to pick a user ID
|
||||
await expect(page.getByRole("heading", { name: "Create your account" })).toBeVisible();
|
||||
await page.getByRole("textbox", { name: "Username (required)" }).type("alice");
|
||||
await page.getByRole("textbox", { name: "Username (required)" }).fill("alice");
|
||||
|
||||
// wait for username validation to start, and complete
|
||||
await expect(page.locator("#field-username-output")).toHaveText("");
|
||||
|
||||
Reference in New Issue
Block a user