Playwright: Update login

The login screen was recently changed, this updates the tests to reflect it.
This commit is contained in:
regexowl 2025-07-01 09:22:41 +02:00 committed by Klara Simickova
parent 852d24e568
commit eafb9ea0f3

View file

@ -109,9 +109,7 @@ const loginCockpit = async (page: Page, user: string, password: string) => {
const loginConsole = async (page: Page, user: string, password: string) => {
await closePopupsIfExist(page);
await page.goto('/insights/image-builder/landing');
await page
.getByRole('textbox', { name: 'Red Hat login or email' })
.fill(user);
await page.getByRole('textbox', { name: 'Red Hat login' }).fill(user);
await page.getByRole('button', { name: 'Next' }).click();
await page.getByRole('textbox', { name: 'Password' }).fill(password);
await page.getByRole('button', { name: 'Log in' }).click();