refactor: 💡 e2e admin tests - update locators (#2931)

* refactor: 💡 e2e tests - update locators

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-17174

* refactor: 💡 addressing comments

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-17174

* refactor: 💡 update test for session-recording-aws-ent

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-17174
This commit is contained in:
Tony authored and GitHub committed 2025-07-17 15:48:20 -04:00
1 parent 0a2d743ea2
commit b99fce7d55
17 files changed
+120 -125

No files matched your search

@@ -223,15 +223,15 @@ test(
await expect(
page
.getByRole('cell', { name: ldapAccountName })
.locator('..')
.getByRole('row')
.filter({ has: page.getByRole('cell', { name: ldapAccountName }) })
.getByRole('cell')
.nth(fullNameIndex),
).toHaveText(ldapUserName);
await expect(
page
.getByRole('cell', { name: ldapAccountName })
.locator('..')
.getByRole('row')
.filter({ has: page.getByRole('cell', { name: ldapAccountName }) })
.getByRole('cell')
.nth(emailIndex),
).toHaveText(ldapUserName + '@mail.com');
@@ -265,15 +265,15 @@ test(
await expect(
page
.getByRole('cell', { name: ldapAccountName })
.locator('..')
.getByRole('row')
.filter({ has: page.getByRole('cell', { name: ldapAccountName }) })
.getByRole('cell')
.nth(fullNameIndex),
).toHaveText(ldapUserName);
await expect(
page
.getByRole('cell', { name: ldapAccountName })
.locator('..')
.getByRole('row')
.filter({ has: page.getByRole('cell', { name: ldapAccountName }) })
.getByRole('cell')
.nth(emailIndex),
).toHaveText(ldapUserName + '@mail.com');