mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix test for invite modal error (#26948)
* Fix test for invite modal error * Update copy in tests * Update copy
This commit is contained in:
committed by
GitHub
parent
f0121d4f23
commit
bd1a0a123d
@@ -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.');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user