Wait for welcome page to load as it might take a bit more time to load/redirect.

Closes #28953

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
This commit is contained in:
Pedro Igor 2024-10-01 17:17:12 -03:00
parent 8e4c67bd3f
commit 9bbe00e3e3

View file

@ -61,6 +61,7 @@ import org.keycloak.testsuite.util.DroneUtils;
import org.keycloak.testsuite.util.OAuthClient;
import org.keycloak.testsuite.util.TestCleanup;
import org.keycloak.testsuite.util.TestEventsLogger;
import org.keycloak.testsuite.util.WaitUtils;
import org.openqa.selenium.WebDriver;
import jakarta.ws.rs.NotFoundException;
@ -279,6 +280,7 @@ public abstract class AbstractKeycloakTest {
log.debug("updating admin password");
welcomePage.navigateTo();
WaitUtils.waitForPageToLoad();
if (!welcomePage.isPasswordSet()) {
welcomePage.setPassword("admin", "admin");
}