Skip to content

Commit 2bf0901

Browse files
authored
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
1 parent 013aa2e commit 2bf0901

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

e2e-tests/admin/tests/auth-method-ldap.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ test(
5555
.getByRole('navigation', { name: 'Application local navigation' })
5656
.getByRole('link', { name: 'Auth Methods' })
5757
.click();
58-
await page.getByRole('button', { name: 'New' }).click();
58+
await expect(
59+
page.getByRole('heading', { name: 'Auth Methods' }),
60+
).toBeVisible();
61+
await page.getByRole('button', { name: 'New', exact: true }).click();
5962
await page.getByRole('link', { name: 'LDAP' }).click();
6063

6164
const ldapAuthMethodName = 'LDAP ' + nanoid();

0 commit comments

Comments
 (0)