[MRM-1257] - Selenium Test for accessing bundled repositories

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@818710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jevica Arianne B. Zurbano 2009-09-25 03:55:57 +00:00
parent 185d83243c
commit b24d5ceb4b
1 changed files with 24 additions and 0 deletions

View File

@ -144,4 +144,28 @@ public class RepositoryTest
addRemoteRepository( "remoterepo" , "Remote Repository Sample" , "http://repository.codehaus.org/org/codehaus/mojo/" , "" , "" , "" , "Maven 2.x Repository" );
assertTextPresent( "Remote Repository Sample" );
}
// *** BUNDLED REPOSITORY TEST ***
@Test ( dependsOnMethods = { "testWithCorrectUsernamePassword" }, alwaysRun = true )
public void testBundledRepository()
{
String repo1 = baseUrl + "repository/internal/";
String repo2 = baseUrl + "repository/snapshots/";
assertRepositoryAccess( repo1 );
assertRepositoryAccess( repo2 );
getSelenium().open( "/archiva" );
}
private void assertRepositoryAccess( String repo )
{
getSelenium().open( "/archiva" );
goToRepositoriesPage();
assertLinkPresent( repo );
clickLinkWithText( repo );
assertPage( "Collection: /" );
assertTextPresent( "Collection: /" );
}
}