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:
parent
8e4c67bd3f
commit
9bbe00e3e3
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue