Stop waiting page load when calling assertCurrent() (#20786)

This commit is contained in:
Jon Koops 2023-06-07 13:13:46 +02:00 committed by GitHub
parent 1af4a7a532
commit 9a8d1ca1f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,6 @@ import org.keycloak.common.util.KeycloakUriBuilder;
import org.keycloak.testsuite.arquillian.SuiteContext;
import org.keycloak.testsuite.util.DroneUtils;
import org.keycloak.testsuite.util.OAuthClient;
import org.keycloak.testsuite.util.WaitUtils;
import org.openqa.selenium.WebDriver;
import java.net.URI;
@ -44,7 +43,6 @@ public abstract class AbstractPage {
protected OAuthClient oauth;
public void assertCurrent() {
WaitUtils.waitForPageToLoad();
String name = getClass().getSimpleName();
Assert.assertTrue("Expected " + name + " but was " + DroneUtils.getCurrentDriver().getTitle() + " (" + DroneUtils.getCurrentDriver().getCurrentUrl() + ")",
isCurrent());