Этот коммит содержится в:
Mario Vitale
2023-03-27 16:28:42 +02:00
родитель da7a6825ce
Коммит ba6b97fb62
1142 изменённых файлов: 44 добавлений и 44 удалений

Просмотреть файл

@@ -0,0 +1,33 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// ***************************************************************
// - [#] indicates a test step (e.g. # Go to a page)
// - [*] indicates an assertion (e.g. * Check the title)
// - Use element ID when selecting an element. Create one if none.
// ***************************************************************
// Stage: @prod
// Group: @channels @websocket
import {getRandomId} from '../../../../utils';
describe('Handle removed user - new sidebar', () => {
it('MM-27202 should add new channels to the sidebar when created from another session', () => {
// # Start with a new team
const teamName = `team-${getRandomId()}`;
cy.createNewTeam(teamName, teamName);
// * Verify that we've switched to the new team
cy.uiGetLHSHeader().findByText(teamName);
// # Create a new channel from another session
const channelName = `channel-${getRandomId()}`;
cy.apiGetTeamByName(teamName).then(({team}) => {
cy.apiCreateChannel(team.id, channelName, channelName, 'O', '', '', false);
});
// Verify that the new channel is in the sidebar
cy.get(`#sidebarItem_${channelName}`).should('be.visible');
});
});

Просмотреть файл

@@ -0,0 +1,33 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// ***************************************************************
// - [#] indicates a test step (e.g. # Go to a page)
// - [*] indicates an assertion (e.g. * Check the title)
// - Use element ID when selecting an element. Create one if none.
// ***************************************************************
// Stage: @prod
// Group: @channels @websocket
import {getRandomId} from '../../../../utils';
describe('Handle removed user - new sidebar', () => {
it('MM-27202 should add new channels to the sidebar when created from another session', () => {
// # Start with a new team
const teamName = `team-${getRandomId()}`;
cy.createNewTeam(teamName, teamName);
// * Verify that we've switched to the new team
cy.uiGetLHSHeader().findByText(teamName);
// # Create a new channel from another session
const channelName = `channel-${getRandomId()}`;
cy.apiGetTeamByName(teamName).then(({team}) => {
cy.apiCreateChannel(team.id, channelName, channelName, 'O', '', '', false);
});
// Verify that the new channel is in the sidebar
cy.get(`#sidebarItem_${channelName}`).should('be.visible');
});
});