merged from trunk -r905969 (fixed failing selenium test)

git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.3.x@905971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2010-02-03 10:20:55 +00:00
parent 62257ab880
commit cd81fd3771
3 changed files with 11 additions and 4 deletions

View File

@ -36,6 +36,7 @@ public class RepositoryTest
assertRepositoriesPage();
}
@Test(dependsOnMethods = { "testAddManagedRepoValidValues" } )
public void testAddManagedRepoInvalidValues()
{
goToRepositoriesPage();

View File

@ -503,7 +503,10 @@ public abstract class AbstractArchivaTest
public void goToRepositoriesPage()
{
clickLinkWithText( "Repositories" );
if( !getTitle().equals( "Apache Archiva \\ Administration - Repositories" ) )
{
clickLinkWithText( "Repositories" );
}
assertRepositoriesPage();
}

View File

@ -28,7 +28,10 @@ public abstract class AbstractRepositoryTest
// Repository Groups
public void goToRepositoryGroupsPage()
{
clickLinkWithText( "Repository Groups" );
if( !getTitle().equals( "Apache Archiva \\ Administration - Repository Groups" ) )
{
clickLinkWithText( "Repository Groups" );
}
assertRepositoryGroupsPage();
}
@ -288,8 +291,8 @@ public abstract class AbstractRepositoryTest
}
public void editManagedRepository( String fieldName, String value )
{
//goToRepositoriesPage();
{
goToRepositoriesPage();
clickLinkWithXPath( "//div[@id='contentArea']/div/div[5]/div[1]/a[1]/img" );
assertPage( "Apache Archiva \\ Admin: Edit Managed Repository" );
setFieldValue(fieldName, value);