KEYCLOAK-18644 New Account Console Tests failures
This commit is contained in:
parent
7cdcf0f93e
commit
f3a96b9da9
3 changed files with 3 additions and 3 deletions
|
@ -67,6 +67,6 @@ public abstract class AbstractAccountTest extends AbstractUiTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getAccountThemeName() {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class LDAPAccountTest extends AbstractAccountTest {
|
||||||
public void updateProfileWithAttributePresent() {
|
public void updateProfileWithAttributePresent() {
|
||||||
|
|
||||||
RealmResource testRealm = adminClient.realm("test");
|
RealmResource testRealm = adminClient.realm("test");
|
||||||
assertEquals("keycloak.v2", testRealm.toRepresentation().getAccountTheme());
|
assertEquals(getAccountThemeName(), testRealm.toRepresentation().getAccountTheme());
|
||||||
|
|
||||||
UserRepresentation userRepBefore = ApiUtil.findUserByUsername(testRealm,"keycloak-15634");
|
UserRepresentation userRepBefore = ApiUtil.findUserByUsername(testRealm,"keycloak-15634");
|
||||||
assertNull("User should not exist", userRepBefore);
|
assertNull("User should not exist", userRepBefore);
|
||||||
|
|
|
@ -215,7 +215,7 @@ public class PersonalInfoTest extends BaseAccountPageTest {
|
||||||
public void updateProfileWithAttributePresent() {
|
public void updateProfileWithAttributePresent() {
|
||||||
|
|
||||||
RealmResource testRealm = adminClient.realm("test");
|
RealmResource testRealm = adminClient.realm("test");
|
||||||
assertEquals("keycloak.v2", testRealm.toRepresentation().getAccountTheme());
|
assertEquals(getAccountThemeName(), testRealm.toRepresentation().getAccountTheme());
|
||||||
|
|
||||||
// Add a user and set a test attribute
|
// Add a user and set a test attribute
|
||||||
addUser("keycloak-15634","keycloak-15634@test.local");
|
addUser("keycloak-15634","keycloak-15634@test.local");
|
||||||
|
|
Loading…
Reference in a new issue