mirror of https://github.com/apache/archiva.git
[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:
parent
185d83243c
commit
b24d5ceb4b
|
@ -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: /" );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue