[MRM-1276] Selenium tests need a clean up

- used getSelenium().open() instead of clickLinkWithText



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@931081 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Marecor M. Baclay 2010-04-06 10:48:51 +00:00
parent db80101357
commit 45100a8806
1 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ public class RepositoryTest
public void testAddManagedRepoValidValues()
{
goToRepositoriesPage();
clickLinkWithText( "Add" );
getSelenium().open( "/archiva/admin/addRepository.action" );
addManagedRepository( "managedrepo1", "Managed Repository Sample 1" , getRepositoryDir() + "repository/" , "", "Maven 2.x Repository", "0 0 * * * ?", "", "" );
clickButtonWithValue( "Save" );
assertTextPresent( "Managed Repository Sample 1" );
@ -40,7 +40,7 @@ public class RepositoryTest
public void testAddManagedRepoInvalidValues()
{
goToRepositoriesPage();
clickLinkWithText( "Add" );
getSelenium().open( "/archiva/admin/addRepository.action" );
addManagedRepository( "", "" , "" , "", "Maven 2.x Repository", "", "", "" );
assertTextPresent( "You must enter a repository identifier." );
assertTextPresent( "You must enter a repository name." );
@ -80,7 +80,7 @@ public class RepositoryTest
public void testAddManagedRepoForEdit()
{
goToRepositoriesPage();
clickLinkWithText( "Add" );
getSelenium().open( "/archiva/admin/addRepository.action" );
addManagedRepository( "managedrepo", "Managed Repository Sample" , getRepositoryDir() + "local-repo/", "", "Maven 2.x Repository", "0 0 * * * ?", "", "" );
clickButtonWithValue( "Save" );
assertTextPresent( "Managed Repository Sample" );