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