KEYCLOAK-8007 Fix compilation errors in Console UI and WelcomePage tests

This commit is contained in:
vmuzikar 2018-08-08 11:36:05 +02:00 committed by Pavel Drozd
parent 905fd3ae00
commit 2efc7ebb48
2 changed files with 5 additions and 5 deletions

View file

@ -128,9 +128,11 @@ public class ResourceForm extends Form {
representation.setDisplayName(UIUtils.getTextInputValue(displayName));
representation.setType(UIUtils.getTextInputValue(type));
Set<String> uris = new HashSet<>();
for (WebElement uriInput : driver.findElements(By.xpath("//input[@ng-model='resource.uris[i]']"))) {
representation.addUri(UIUtils.getTextInputValue(uriInput));
uris.add(UIUtils.getTextInputValue(uriInput));
}
representation.setUris(uris);
representation.setIconUri(UIUtils.getTextInputValue(iconUri));
representation.setScopes(scopesInput.getSelected());

View file

@ -20,9 +20,7 @@ package org.keycloak.testsuite.welcomepage;
import org.jboss.arquillian.graphene.page.Page;
import org.junit.After;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@ -109,7 +107,7 @@ public class WelcomePageTest extends AbstractKeycloakTest {
@Test
public void test_2_RemoteAccessNoAdmin() throws Exception {
navigateToUri(getPublicServerUrl().toString(), true);
navigateToUri(getPublicServerUrl().toString());
Assert.assertFalse("Welcome page did not ask to create a new admin user.", welcomePage.isPasswordSet());
}
@ -125,7 +123,7 @@ public class WelcomePageTest extends AbstractKeycloakTest {
@Test
public void test_4_RemoteAccessWithAdmin() throws Exception {
navigateToUri(getPublicServerUrl().toString(), true);
navigateToUri(getPublicServerUrl().toString());
Assert.assertTrue("Welcome page asked to set admin password.", welcomePage.isPasswordSet());
}