KEYCLOAK-18644 New Account Console Tests failures

This commit is contained in:
Martin Bartoš 2021-07-08 14:49:48 +02:00 committed by Pavel Drozd
parent 7cdcf0f93e
commit f3a96b9da9
3 changed files with 3 additions and 3 deletions

View file

@ -67,6 +67,6 @@ public abstract class AbstractAccountTest extends AbstractUiTest {
}
protected String getAccountThemeName() {
return suiteContext.getAuthServerInfo().isEAP() ? ACCOUNT_THEME_NAME_RHSSO : ACCOUNT_THEME_NAME_KC;
return getProjectName().equals(Profile.PRODUCT_NAME) ? ACCOUNT_THEME_NAME_RHSSO : ACCOUNT_THEME_NAME_KC;
}
}

View file

@ -108,7 +108,7 @@ public class LDAPAccountTest extends AbstractAccountTest {
public void updateProfileWithAttributePresent() {
RealmResource testRealm = adminClient.realm("test");
assertEquals("keycloak.v2", testRealm.toRepresentation().getAccountTheme());
assertEquals(getAccountThemeName(), testRealm.toRepresentation().getAccountTheme());
UserRepresentation userRepBefore = ApiUtil.findUserByUsername(testRealm,"keycloak-15634");
assertNull("User should not exist", userRepBefore);

View file

@ -215,7 +215,7 @@ public class PersonalInfoTest extends BaseAccountPageTest {
public void updateProfileWithAttributePresent() {
RealmResource testRealm = adminClient.realm("test");
assertEquals("keycloak.v2", testRealm.toRepresentation().getAccountTheme());
assertEquals(getAccountThemeName(), testRealm.toRepresentation().getAccountTheme());
// Add a user and set a test attribute
addUser("keycloak-15634","keycloak-15634@test.local");