diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/auth/page/login/TermsAndConditions.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/auth/page/login/TermsAndConditions.java index fb7d9b1d65..a732c473f7 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/auth/page/login/TermsAndConditions.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/auth/page/login/TermsAndConditions.java @@ -17,6 +17,7 @@ package org.keycloak.testsuite.auth.page.login; import org.keycloak.testsuite.util.UIUtils; +import org.keycloak.testsuite.util.WaitUtils; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; @@ -41,9 +42,11 @@ public class TermsAndConditions extends LoginActions { public void acceptTerms() { acceptButton.click(); + WaitUtils.waitForPageToLoad(driver); } public void declineTerms() { declineButton.click(); + WaitUtils.waitForPageToLoad(driver); } public String getAcceptButtonText() {