diff --git a/client/src/components/InvitationRoleCard.jsx b/client/src/components/InvitationRoleCard.jsx index f0d21c4c..4640bc50 100644 --- a/client/src/components/InvitationRoleCard.jsx +++ b/client/src/components/InvitationRoleCard.jsx @@ -18,7 +18,7 @@ export const InvitationRoleCard = ({ isNew = false }) => { const navigate = useNavigate(); - + const multiApp = applicationMaps.length > 1; const application = applicationMaps[0]; const logo = multiApp ? : application.logo; diff --git a/server/src/test/java/access/api/RoleControllerTest.java b/server/src/test/java/access/api/RoleControllerTest.java index 0bd8bad7..0850ce0c 100644 --- a/server/src/test/java/access/api/RoleControllerTest.java +++ b/server/src/test/java/access/api/RoleControllerTest.java @@ -149,8 +149,8 @@ void rolesByApplication() throws Exception { @Test void rolesByApplicationInstitutionAdmin() throws Exception { - super.stubForManagerProvidersByIdIn(EntityType.SAML20_SP, List.of("1")); - super.stubForManagerProvidersByIdIn(EntityType.OIDC10_RP, List.of("1")); + super.stubForManagerProvidersByIdIn(EntityType.SAML20_SP, List.of("1", "2")); + super.stubForManagerProvidersByIdIn(EntityType.OIDC10_RP, List.of("5")); super.stubForManageProviderByOrganisationGUID(ORGANISATION_GUID); @@ -171,8 +171,8 @@ void rolesByApplicationInstitutionAdmin() throws Exception { @Test void rolesByApplicationSuperUser() throws Exception { AccessCookieFilter accessCookieFilter = openIDConnectFlow("/api/v1/users/login", SUPER_SUB); - super.stubForManagerProvidersByIdIn(EntityType.SAML20_SP, List.of("1")); - super.stubForManagerProvidersByIdIn(EntityType.OIDC10_RP, List.of("1")); + super.stubForManagerProvidersByIdIn(EntityType.SAML20_SP, List.of("1", "2", "3", "4")); + super.stubForManagerProvidersByIdIn(EntityType.OIDC10_RP, List.of("5", "6")); List roles = given() .when() @@ -232,8 +232,8 @@ void deleteRole() throws Exception { @Test void search() throws Exception { AccessCookieFilter accessCookieFilter = openIDConnectFlow("/api/v1/users/login", SUPER_SUB); - super.stubForManagerProvidersByIdIn(EntityType.SAML20_SP, List.of("1")); - super.stubForManagerProvidersByIdIn(EntityType.OIDC10_RP, List.of("1")); + super.stubForManagerProvidersByIdIn(EntityType.SAML20_SP, List.of("1", "2", "3", "4")); + super.stubForManagerProvidersByIdIn(EntityType.OIDC10_RP, List.of("5", "6")); List roles = given() .when() @@ -284,8 +284,8 @@ void roleNotFound() throws Exception { @Test void rolesByApplicationInstitutionAdminByAPI() throws Exception { - super.stubForManagerProvidersByIdIn(EntityType.SAML20_SP, List.of("1")); - super.stubForManagerProvidersByIdIn(EntityType.OIDC10_RP, List.of("1")); + super.stubForManagerProvidersByIdIn(EntityType.SAML20_SP, List.of("1", "2")); + super.stubForManagerProvidersByIdIn(EntityType.OIDC10_RP, List.of("5")); super.stubForManageProviderByOrganisationGUID(ORGANISATION_GUID); List roles = given()