Skip to content

Commit 0ee21c0

Browse files
committed
fix another instance of fetching the wrong element
1 parent 851f929 commit 0ee21c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playwright/e2e/crypto/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ export async function logIntoElement(page: Page, credentials: Credentials, secur
228228
await useSecurityKey.click();
229229
}
230230
// Fill in the recovery key
231-
await page.locator(".mx_Dialog").locator('input[type="password"]').fill(securityKey);
232-
await page.locator(".mx_Dialog_primary:not([disabled])", { hasText: "Continue" }).click();
231+
await page.locator(".mx_Dialog").locator("textarea").fill(securityKey);
232+
await page.getByRole("button", { name: "Continue", disabled: false }).click();
233233
await page.getByRole("button", { name: "Done" }).click();
234234
}
235235
}

0 commit comments

Comments
 (0)