From 9a8d1ca1f37117d8f415de22bc8f79f913a5b923 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Wed, 7 Jun 2023 13:13:46 +0200 Subject: [PATCH] Stop waiting page load when calling `assertCurrent()` (#20786) --- .../main/java/org/keycloak/testsuite/pages/AbstractPage.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/AbstractPage.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/AbstractPage.java index 2379d96259..5a18c851c0 100755 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/AbstractPage.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/AbstractPage.java @@ -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());