From 272ebbdb52841a4dcd0ffa2855efb86143248821 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sat, 10 Jun 2017 20:54:00 +0200 Subject: [PATCH] Adding additional wait for citest --- .../java/org/apache/archiva/web/test/WebDriverTest.java | 6 ++++++ 1 file changed, 6 insertions(+) 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()) { -- 2.39.5