diff --git a/e2e-tests/cypress/tests/integration/channels/system_console/user_management/users_reactivation_spec.js b/e2e-tests/cypress/tests/integration/channels/system_console/user_management/users_reactivation_spec.js index 84a43cd3c0..eedf36af07 100644 --- a/e2e-tests/cypress/tests/integration/channels/system_console/user_management/users_reactivation_spec.js +++ b/e2e-tests/cypress/tests/integration/channels/system_console/user_management/users_reactivation_spec.js @@ -16,17 +16,20 @@ import * as MESSAGES from '../../../../fixtures/messages'; import {getRandomId} from '../../../../utils'; describe('System Console > User Management > Reactivation', () => { + var teamName; before(() => { cy.shouldNotRunOnCloudEdition(); // # Do initial setup cy.apiInitSetup().then(({team}) => { - // # Visit town-square - cy.visit(`/${team.name}`); + teamName = team.name; }); }); it('MM-T952 Reactivating a user results in them showing up in the normal spot in the list, without the `Deactivated` label.', () => { + // # Visit town-square + cy.visit(`/${teamName}`); + // # Create two users with same random prefix const id = getRandomId();