Update channel_settings_spec.js (#25580)

Error text updated to `A channel with that name already exists on the same team.`

MM-T882 Channel URL validation works properly

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
lindalumitchell 2024-01-16 02:58:05 -08:00 committed by GitHub
parent 8818141dae
commit 1e184df414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ describe('Channel Settings', () => {
cy.get('#save-button').click();
// # Error is displayed and URL is unchanged
cy.get('.has-error').should('be.visible').and('contain', 'Unable to update the channel');
cy.get('.has-error').should('be.visible').and('contain', 'A channel with that name already exists on the same team.');
cy.url().should('include', `/${testTeam.name}/channels/${channel.name}`);
// # Enter a new URL and save