Hynek's notes
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
35ce3c0a1f
commit
e2d7a94459
2 changed files with 2 additions and 6 deletions
|
@ -223,9 +223,7 @@ public class UncaughtErrorPageTest extends AbstractKeycloakTest {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
checkPageNotFound("/auth/realms/master/nosuch");
|
checkPageNotFound("/auth/realms/master/nosuch");
|
||||||
// Once keycloak.v2 would be the default login theme, uncomment the following line and remove the one below:
|
String url = driver.findElement(By.xpath("//option[text()[contains(.,'Deutsch')]]")).getAttribute("value");
|
||||||
// String url = driver.findElement(By.xpath("//option[text()[contains(.,'Deutsch')]]")).getAttribute("value");
|
|
||||||
String url = driver.findElement(By.xpath("//a[text()[contains(.,'Deutsch')]]")).getAttribute("href");
|
|
||||||
driver.navigate().to(url);
|
driver.navigate().to(url);
|
||||||
errorPage.assertCurrent();
|
errorPage.assertCurrent();
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
@ -12,9 +12,7 @@ import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
public class ThemeSelectorTest extends AbstractTestRealmKeycloakTest {
|
public class ThemeSelectorTest extends AbstractTestRealmKeycloakTest {
|
||||||
|
|
||||||
// At this moment, the default login theme as defined in ThemeSelectorProvider is "keycloak".
|
private static final String SYSTEM_DEFAULT_LOGIN_THEME = ThemeSelectorProvider.DEFAULT_V2;
|
||||||
// Once the ThemeSelectorProvider.DEFAULT_V2 becomes default, this needs to be reflected in this constant.
|
|
||||||
private static final String SYSTEM_DEFAULT_LOGIN_THEME = ThemeSelectorProvider.DEFAULT;
|
|
||||||
|
|
||||||
@Page
|
@Page
|
||||||
protected LoginPage loginPage;
|
protected LoginPage loginPage;
|
||||||
|
|
Loading…
Reference in a new issue