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()) {