]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1276] Selenium tests need a clean up
authorMarecor M. Baclay <mbaclay@apache.org>
Tue, 6 Apr 2010 10:48:51 +0000 (10:48 +0000)
committerMarecor M. Baclay <mbaclay@apache.org>
Tue, 6 Apr 2010 10:48:51 +0000 (10:48 +0000)
- used getSelenium().open() instead of clickLinkWithText

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@931081 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java

index df1088c2449c397a74e7665d5b48cf70a13c15d1..8eabb7950f69c0e9fb360204d6ae6186ebf41fc2 100644 (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" );