From 4b5fee02cc766beae806087145712e3e4a29d1db Mon Sep 17 00:00:00 2001 From: Vaclav Muzikar Date: Thu, 11 Feb 2016 15:44:03 +0100 Subject: [PATCH] Fix AbstractClientTest.createClient (cherry picked from commit 5ab40b0) --- .../testsuite/console/clients/AbstractClientTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/clients/AbstractClientTest.java b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/clients/AbstractClientTest.java index f646675d20..0f68266450 100644 --- a/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/clients/AbstractClientTest.java +++ b/testsuite/integration-arquillian/tests/other/console/src/test/java/org/keycloak/testsuite/console/clients/AbstractClientTest.java @@ -43,6 +43,7 @@ import static org.keycloak.testsuite.util.AttributesAssert.assertEqualsBooleanAt import static org.keycloak.testsuite.util.AttributesAssert.assertEqualsListAttributes; import static org.keycloak.testsuite.util.AttributesAssert.assertEqualsStringAttributes; import static org.keycloak.testsuite.util.URLAssert.assertCurrentUrlEquals; +import static org.keycloak.testsuite.util.WaitUtils.pause; /** * @@ -69,11 +70,14 @@ public abstract class AbstractClientTest extends AbstractConsoleTest { } public void createClient(ClientRepresentation client) { - WaitUtils.waitUntilElement(By.tagName("body")); + WaitUtils.waitUntilElement(By.tagName("body")).is().present(); assertCurrentUrlEquals(clientsPage); clientsPage.table().createClient(); createClientPage.form().setValues(client); createClientPage.form().save(); + assertAlertSuccess(); + + pause(500); // To ensure that the form will be loaded completely clientSettingsPage.form().setValues(client); if (SAML.equals(client.getProtocol())) {