]> source.dussan.org Git - archiva.git/commitdiff
made the test pass... left a comment in there regarding the prev failure
authorEdwin L. Punzalan <epunzalan@apache.org>
Sun, 24 Dec 2006 11:39:43 +0000 (11:39 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Sun, 24 Dec 2006 11:39:43 +0000 (11:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@490010 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java

index a86ee7480d56fb5beeb89f2739887be240b2fa60..03093d37ed3bc993058beeb89d763bf09acd8571 100644 (file)
@@ -39,6 +39,7 @@ public class LoginTest
         goToLoginPage();
         submitLoginPage( "test-user", "temp-pass" );
 
+        // change of password required for new users
         if ( getTitle().equals( getTitlePrefix() + "Change Password" ) )
         {
             setFieldValue( "existingPassword", "temp-pass" );
@@ -83,18 +84,14 @@ public class LoginTest
 
         clickLinkWithText( "User Management" );
         assertPage( "[Admin] User List" );
+        assertLinkPresent( username );
 
-        try
-        {
-            Thread.sleep( 15000 );
-        }
-        catch ( InterruptedException e )
-        {
-            e.printStackTrace();
-        }
+        //this does not work bec the image is pointing to /archiva/archiva/images/pss/admin/delete.gif
+        // when ran in selenium
+        // clickLinkWithXPath( "//a[@href='/security/userdelete.action?username=" + username + "']" );
+        //so instead we use this
+        open( "/archiva/security/userdelete.action?username=" + username );
 
-        assertLinkPresent( username );
-        clickLinkWithXPath( "//a[@href='/security/userdelete.action?username=" + username + "']" );
         assertPage( "[Admin] User Delete" );
         assertTextPresent( "The following user will be deleted: " + username );
         clickButtonWithValue( "Delete User" );