From: Martin Stockhammer Date: Sat, 10 Jun 2017 18:54:00 +0000 (+0200) Subject: Adding additional wait for citest X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=272ebbdb52841a4dcd0ffa2855efb86143248821;p=archiva.git Adding additional wait for citest --- diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/WebDriverTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/WebDriverTest.java index 0cdce6536..35e26b39b 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/WebDriverTest.java +++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/WebDriverTest.java @@ -42,6 +42,7 @@ import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; +import java.util.concurrent.TimeUnit; /** * @author Olivier Lamy @@ -89,6 +90,11 @@ public class WebDriverTest // wait until topbar-menu-container is feeded //await().atMost(20, TimeUnit.SECONDS).until($("#topbar-menu")).present(); await().untilPredicate((fl) ->$("#topbar-menu").present()); + await().atMost( 10, TimeUnit.SECONDS).untilPredicate( ( fl) -> el("#create-admin-link-a").conditions().clickable() || + el("#login-link-a").conditions().clickable() + ); + + FluentList elements = find("#create-admin-link-a"); if (!elements.isEmpty() && elements.get(0).displayed()) {