Files
sabrilandGitHub 23af2531fa SEC-10098 E2E/Cypress chore(cypress): upgrade to v15.13 and to [email protected] (#36091)
* chore(cypress): upgrade to v15.13 and to [email protected]

* fix comments and update exposing cypress env
2026-04-16 13:35:26 +08:00

46 lines
1.5 KiB
TypeScript

// 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 @autocomplete
import {doTestDMChannelSidebar, doTestUserChannelSection} from '../common_test';
import {createSearchData, SimpleUser} from '../helpers';
import {getRandomLetter} from '@/utils';
describe('Autocomplete with Database - Users', () => {
const prefix = getRandomLetter(3);
let testUsers: Record<string, SimpleUser>;
let testTeam: Cypress.Team;
before(() => {
cy.apiGetClientLicense().then(({isCloudLicensed}) => {
if (!isCloudLicensed) {
cy.shouldHaveElasticsearchDisabled();
}
});
createSearchData(prefix).then((searchData) => {
testUsers = searchData.users;
testTeam = searchData.team;
cy.apiLogin(searchData.sysadmin);
});
});
it('MM-T4081 Users in correct in/out of channel sections', () => {
doTestUserChannelSection(prefix, testTeam, testUsers);
});
it('MM-T4082 DM can be opened with a user not on your team or in your DM channel sidebar', () => {
doTestDMChannelSidebar(testUsers);
});
});