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:
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');
|
||||
|
||||
Reference in new issue
Block a user