diff --git a/e2e-tests/cypress/e2e/approver/approver_conf_spec.js b/e2e-tests/cypress/e2e/approver/approver_conf_spec.js index bfd4555279..e58be3df72 100644 --- a/e2e-tests/cypress/e2e/approver/approver_conf_spec.js +++ b/e2e-tests/cypress/e2e/approver/approver_conf_spec.js @@ -122,7 +122,7 @@ describe('Approver Config Tests', () => { cy.get(`[data-cy="workloadCell_${user1}"] [data-cy="editApprovalBtn"]`).click() cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"]`).click(); - cy.selectItem(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] #existingUserInput`, 'userA', true, true); + cy.selectItem(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] #existingUserInput`, 'userb', true, true); // cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] .vs__dropdown-option`).contains('userA').click({force: true}); cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="addUserConfBtn"]`).click() cy.get(`[data-cy="workloadCell_${user1}"]`).contains('1 Specific User') diff --git a/e2e-tests/cypress/e2e/approver/approver_conf_users_spec.js b/e2e-tests/cypress/e2e/approver/approver_conf_users_spec.js index 04ac7780d2..080b11a6b2 100644 --- a/e2e-tests/cypress/e2e/approver/approver_conf_users_spec.js +++ b/e2e-tests/cypress/e2e/approver/approver_conf_users_spec.js @@ -63,7 +63,7 @@ describe('Approver Config Users Tests', () => { cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="addUserConfBtn"]`).should('be.disabled') // cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"]`).click(); - cy.selectItem(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] #existingUserInput`, 'userA', true, true); + cy.selectItem(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] #existingUserInput`, 'usera', true, true); // cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] .p-dropdown-option`).contains('userA').click(); cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="addUserConfBtn"]`).should('be.enabled') @@ -79,7 +79,7 @@ describe('Approver Config Users Tests', () => { cy.get(`[data-cy="workloadCell_${user1}"]`).contains('1 Specific User') // cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"]`).click(); - cy.selectItem(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] #existingUserInput`, 'userB', true, true); + cy.selectItem(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] #existingUserInput`, 'userb', true, true); // cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] .p-dropdown-option`).contains('userB').click(); cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="addUserConfBtn"]`).should('be.enabled') cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="addUserConfBtn"]`).click() diff --git a/e2e-tests/cypress/e2e/inception/inception_skills_specs.js b/e2e-tests/cypress/e2e/inception/inception_skills_specs.js index eabbdd8981..e20cb3d5c7 100644 --- a/e2e-tests/cypress/e2e/inception/inception_skills_specs.js +++ b/e2e-tests/cypress/e2e/inception/inception_skills_specs.js @@ -466,7 +466,7 @@ describe('Inception Skills Tests', () => { cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="noUserConf"]`).should('exist') cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"]`).click(); - cy.selectItem(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] #existingUserInput`, 'userA', true, true); + cy.selectItem(`[data-cy="expandedChild_${user1}"] [data-cy="userIdInput"] #existingUserInput`, 'usera', true, true); cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="addUserConfBtn"]`).should('be.enabled') cy.assertInceptionPoints('Skills', 'ConfigureSelfApprovalWorkload', 0, false) diff --git a/service/src/test/java/skills/intTests/SuggestUsersSpecs.groovy b/service/src/test/java/skills/intTests/SuggestUsersSpecs.groovy index 7967a20d41..772347cfc0 100644 --- a/service/src/test/java/skills/intTests/SuggestUsersSpecs.groovy +++ b/service/src/test/java/skills/intTests/SuggestUsersSpecs.groovy @@ -101,12 +101,11 @@ class SuggestUsersSpecs extends DefaultIntSpec { // user by registering with dashboard createService(users[1]) - String user1UserIdForDisplay = userAttrsRepo.findByUserIdIgnoreCase(users[1].toLowerCase()).userIdForDisplay when: def allUsers = skillsService.suggestClientUsers("user") then: - allUsers.userId == [users[0], user1UserIdForDisplay] + allUsers.userId == [users[0], users[1]].collect { it.toLowerCase() }.sort() } }