From: Marecor M. Baclay Date: Tue, 6 Apr 2010 10:48:51 +0000 (+0000) Subject: [MRM-1276] Selenium tests need a clean up X-Git-Tag: archiva-1.4-M1~957 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45100a88065a03f5491b79dae843c4e450278f5e;p=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 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java index df1088c24..8eabb7950 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java +++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/RepositoryTest.java @@ -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" );