diff options
author | skygo <skygo@unknown> | 2013-06-07 21:39:44 +0000 |
---|---|---|
committer | skygo <skygo@unknown> | 2013-06-07 21:39:44 +0000 |
commit | 0e5d8db0b75a9fb2039960d4340e2080cc440ed1 (patch) | |
tree | 74a528d94b9752633f9c578b959b0d67f8108742 /archiva-modules | |
parent | a40ff0c3cba80c57cfb81b1b676701f2d7774956 (diff) | |
download | archiva-0e5d8db0b75a9fb2039960d4340e2080cc440ed1.tar.gz archiva-0e5d8db0b75a9fb2039960d4340e2080cc440ed1.zip |
try to wait a bit for ajax to feed topbar before test.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1490843 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/WebDriverTest.java | 6 |
1 files changed, 5 insertions, 1 deletions
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 f184dd0b9..0a4c1adb3 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 @@ -35,6 +35,7 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; +import java.util.concurrent.TimeUnit; import org.apache.commons.io.FileUtils; import org.fluentlenium.core.Fluent; import org.junit.Before; @@ -82,7 +83,10 @@ public class WebDriverTest int tomcatPort = Integer.parseInt( tomcatPortProperties.getProperty( "tomcat.maven.http.port" ) ); goTo( "http://localhost:" + tomcatPort + "/archiva/index.html?request_lang=en" ); - + + // wait until topbar-menu-container is feeded + await().atMost(5, TimeUnit.SECONDS).until("#topbar-menu").isPresent(); + FluentList<FluentWebElement> elements = find( "#create-admin-link-a" ); if ( !elements.isEmpty() && elements.get( 0 ).isDisplayed() ) |