From 0345cba209f534e4b92e3602e97c3131e56937f5 Mon Sep 17 00:00:00 2001 From: Mario Vitale Date: Fri, 20 Dec 2024 19:37:03 +0100 Subject: [PATCH] [skip ci] Stabilize users_reactivation_spec.js E2E testcase (#29664) --- .../user_management/users_reactivation_spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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();