Skip to content

Commit 8d6ee94

Browse files
committed
Fix C387512
1 parent 920c94d commit 8d6ee94

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

cypress/e2e/consortia/affiliation-in-central-tenant-is-automatically-added.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('Consortia', () => {
6969
'C387512 Affiliation in central tenant is automatically added after creating user in the member tenant (consortia) (thunderjet)',
7070
{ tags: ['smokeECS', 'thunderjet', 'C387512'] },
7171
() => {
72-
Users.createViaUi(testUser).then((id) => {
72+
Users.createViaUi(testUser, { isKeycloak: true }).then((id) => {
7373
testUser.id = id;
7474
});
7575
ConsortiumManager.switchActiveAffiliation(tenantNames.college, tenantNames.central);

cypress/support/fragments/users/users.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
TextField,
2121
} from '../../../../interactors';
2222
import getRandomPostfix from '../../utils/stringTools';
23+
import UserEdit from './userEdit';
2324

2425
const userDetailsPane = Pane({ id: 'pane-userdetails' });
2526
const contactInformationAccordion = Accordion('Contact information');
@@ -252,7 +253,7 @@ export default {
252253
);
253254
},
254255

255-
createViaUi: (userData) => {
256+
createViaUi: (userData, { isKeycloak = false } = {}) => {
256257
return cy
257258
.do([
258259
Section({ id: 'users-search-results-pane' })
@@ -273,6 +274,11 @@ export default {
273274
.then(() => {
274275
cy.wait(10000);
275276
cy.do(Button({ id: 'clickable-save' }).click());
277+
278+
if (isKeycloak) {
279+
UserEdit.checkPromoteUserModal(userData.personal?.lastName);
280+
UserEdit.clickConfirmInPromoteUserModal();
281+
}
276282
})
277283
.then(() => {
278284
cy.intercept('/users').as('user');

0 commit comments

Comments
 (0)