mirror of https://github.com/apache/archiva.git
Additional wait for citest
This commit is contained in:
parent
f255732969
commit
6470118db0
|
@ -102,6 +102,9 @@ public class WebDriverBrowseTest
|
||||||
|
|
||||||
// wait until topbar-menu-container is feeded
|
// wait until topbar-menu-container is feeded
|
||||||
await().atMost( 5, TimeUnit.SECONDS ).untilPredicate( ( fl ) -> $( "#topbar-menu" ).present() );
|
await().atMost( 5, TimeUnit.SECONDS ).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<FluentWebElement> elements = find( "#create-admin-link-a" );
|
FluentList<FluentWebElement> elements = find( "#create-admin-link-a" );
|
||||||
if ( !elements.isEmpty() && elements.get( 0 ).displayed() )
|
if ( !elements.isEmpty() && elements.get( 0 ).displayed() )
|
||||||
|
|
Loading…
Reference in New Issue