Fix failing Account Console tests (#23353)

This commit is contained in:
agagancarczyk 2023-09-19 13:29:05 +01:00 committed by GitHub
parent d796721e00
commit 358bae0652
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,6 @@ export const login = async (
process.env.CI ? `/realms/${realm}/account` : `/?realm=${realm}`, process.env.CI ? `/realms/${realm}/account` : `/?realm=${realm}`,
); );
await page.getByLabel("Username").fill(username); 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(); await page.getByRole("button", { name: "Sign In" }).click();
}; };