made the test pass... left a comment in there regarding the prev failure

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@490010 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Edwin L. Punzalan 2006-12-24 11:39:43 +00:00
parent 1ecf5d32b0
commit c91574b144
1 changed files with 8 additions and 11 deletions

View 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" );
try
{
Thread.sleep( 15000 );
}
catch ( InterruptedException e )
{
e.printStackTrace();
}
assertLinkPresent( username );
clickLinkWithXPath( "//a[@href='/security/userdelete.action?username=" + username + "']" );
//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 );
assertPage( "[Admin] User Delete" );
assertTextPresent( "The following user will be deleted: " + username );
clickButtonWithValue( "Delete User" );