From f810e85526d129361373942c1749d7b316775958 Mon Sep 17 00:00:00 2001 From: mhajas Date: Thu, 19 Sep 2019 10:24:50 +0200 Subject: [PATCH] KEYCLOAK-11316 Fix Photoz instabilities on windows Error message: Cannot read property 'token_endpoint' of undefined --- .../authorization/AbstractBasePhotozExampleAdapterTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/authorization/AbstractBasePhotozExampleAdapterTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/authorization/AbstractBasePhotozExampleAdapterTest.java index fe798590a9..c4522210fb 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/authorization/AbstractBasePhotozExampleAdapterTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/authorization/AbstractBasePhotozExampleAdapterTest.java @@ -81,6 +81,7 @@ import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.ui.WebDriverWait; import org.wildfly.extras.creaper.core.online.CliException; import org.wildfly.extras.creaper.core.online.OnlineManagementClient; import org.wildfly.extras.creaper.core.online.operations.admin.Administration; @@ -237,6 +238,8 @@ public abstract class AbstractBasePhotozExampleAdapterTest extends AbstractPhoto .login(this::assertOnLoginPage) .loginFormWithScopesWithPossibleConsentPage(user, this::assertOnTestAppUrl, oAuthGrantPage, scopes) .init(defaultArguments(), this::assertSuccessfullyLoggedIn); + + new WebDriverWait(jsDriver, 10).until(this::isLoaded); } public boolean isLoaded(WebDriver w) {