Browse Source

test: fix kludge with hardwired values

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5903/head
Raju Udava 1 year ago
parent
commit
7932280fd5
  1. 2
      tests/playwright/pages/Account/Users.ts
  2. 2
      tests/playwright/pages/Dashboard/Settings/Teams.ts

2
tests/playwright/pages/Account/Users.ts

@ -45,7 +45,7 @@ export class AccountUsersPage extends BasePage {
await this.verifyToast({ message: 'Successfully added user' });
// http://localhost:3000/#/signup/a5e7bf3a-cbb0-46bc-87f7-c2ae21796707
return (await this.inviteUserModal.locator(`.ant-alert-message`).innerText()).slice(0, 67);
return (await this.inviteUserModal.locator(`.ant-alert-message`).innerText()).split('\n')[0];
}
prefixEmail(email: string) {

2
tests/playwright/pages/Dashboard/Settings/Teams.ts

@ -45,7 +45,7 @@ export class TeamsPage extends BasePage {
await this.verifyToast({ message: 'Successfully updated the user details' });
// http://localhost:3000/#/signup/a5e7bf3a-cbb0-46bc-87f7-c2ae21796707
return (await this.inviteTeamModal.locator(`.ant-alert-message`).innerText()).slice(0, 67);
return (await this.inviteTeamModal.locator(`.ant-alert-message`).innerText()).split('\n')[0];
}
async closeInvite() {

Loading…
Cancel
Save