From 5e360cf919067023d81caf9dc0549502ce7c5f30 Mon Sep 17 00:00:00 2001 From: Vaclav Muzikar Date: Tue, 4 Apr 2017 07:40:16 +0200 Subject: [PATCH] KEYCLOAK-4351 Stabilize TermsAndConditions test in IE --- .../keycloak/testsuite/auth/page/login/TermsAndConditions.java | 3 +++ 1 file changed, 3 insertions(+) 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() {