cleanup test as link with id not here

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1138590 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-06-22 19:16:22 +00:00
parent 48e840bcb4
commit 1eeba6ab68
1 changed files with 2 additions and 5 deletions

View File

@ -26,14 +26,11 @@ public abstract class AbstractSearchTest
public void goToSearchPage()
{
goToHomePage();
//if ( !"Apache Archiva \\ Quick Search".equals( getTitle() ) )
if ( isElementPresent( "quickSearchBox" ) )
if (!isElementPresent( "quickSearchBox" ) )
{
//clickLinkWithText( "Search" );
clickLinkWithLocator( "menuSearchLink" );
getSelenium().open( "/index.action");
getSelenium().waitForPageToLoad( maxWaitTimeInMs );
assertElementPresent( "quickSearchSubmit" );
//assertPage( "Apache Archiva \\ Quick Search" );
}
}