fix(e2e): Fix LDAP test when org name contains the word "New" (#3074)

* fix(e2e): Wait for auth methods page to load

* fix(e2e): Make search for New button exact
This commit is contained in:
Michael Li authored and GitHub committed 2025-11-18 08:35:46 -05:00
1 parent 013aa2e570
commit 2bf09011fb
1 file changed
+4 -1
@@ -55,7 +55,10 @@ test(
.getByRole('navigation', { name: 'Application local navigation' })
.getByRole('link', { name: 'Auth Methods' })
.click();
await page.getByRole('button', { name: 'New' }).click();
await expect(
page.getByRole('heading', { name: 'Auth Methods' }),
).toBeVisible();
await page.getByRole('button', { name: 'New', exact: true }).click();
await page.getByRole('link', { name: 'LDAP' }).click();
const ldapAuthMethodName = 'LDAP ' + nanoid();