archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From epunza...@apache.org
Subject svn commit: r490010 - /maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java
Date Sun, 24 Dec 2006 11:39:43 GMT
Author: epunzalan
Date: Sun Dec 24 03:39:43 2006
New Revision: 490010

URL: http://svn.apache.org/viewvc?view=rev&rev=490010
Log:
made the test pass... left a comment in there regarding the prev failure

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

Modified: maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java?view=diff&rev=490010&r1=490009&r2=490010
==============================================================================
--- maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java
(original)
+++ maven/archiva/trunk/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java
Sun Dec 24 03:39:43 2006
@@ -39,6 +39,7 @@
         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 @@
 
         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" );



Mime
View raw message