diff --git a/js/apps/account-ui/test/login.ts b/js/apps/account-ui/test/login.ts index 4cb13c8f8e..f01c626588 100644 --- a/js/apps/account-ui/test/login.ts +++ b/js/apps/account-ui/test/login.ts @@ -11,6 +11,6 @@ export const login = async ( process.env.CI ? `/realms/${realm}/account` : `/?realm=${realm}`, ); await page.getByLabel("Username").fill(username); - await page.getByLabel("Password").fill(password); + await page.getByLabel("Password", { exact: true }).fill(password); await page.getByRole("button", { name: "Sign In" }).click(); };