Fix test for invite modal error (#26948)

* Fix test for invite modal error

* Update copy in tests

* Update copy
This commit is contained in:
Daniel Espino García
2024-05-10 09:20:30 +02:00
committed by GitHub
parent f0121d4f23
commit bd1a0a123d
5 changed files with 11 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ describe('Guest Account - Guest User Invitation Flow', () => {
invitePeople(newUser.username, 1, newUser.username);
// * Verify the content and message in next screen
verifyInvitationError(newUser.username, testTeam, 'This person is already a member.');
verifyInvitationError(newUser.username, testTeam, 'This person is already a member of the workspace. Invite them as a member instead of a guest.');
});
});
});
@@ -83,7 +83,7 @@ describe('Guest Account - Guest User Invitation Flow', () => {
invitePeople(regularUser.email, 1, regularUser.username);
// * Verify the content and message in next screen
verifyInvitationError(regularUser.username, testTeam, 'This person is already a member.');
verifyInvitationError(regularUser.username, testTeam, 'This person is already a member of the workspace. Invite them as a member instead of a guest.');
});
});

View File

@@ -198,7 +198,7 @@ describe('Guest Account - Guest User Invitation Flow', () => {
invitePeople(newUser.username, 1, newUser.username);
// * Verify the content and message in next screen
cy.findByText('This person is already a member.').should('be.visible');
cy.findByText('This person is already a member of the workspace. Invite them as a member instead of a guest.').should('be.visible');
// # Click on invite more button
cy.findByTestId('invite-more').click();