From: Edwin L. Punzalan Date: Sun, 24 Dec 2006 11:39:43 +0000 (+0000) Subject: made the test pass... left a comment in there regarding the prev failure X-Git-Tag: archiva-0.9-alpha-1~189 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c91574b1447bdcb0e2995bd6be96daf576f7be02;p=archiva.git 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 --- diff --git a/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java b/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java index a86ee7480..03093d37e 100644 --- a/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java +++ b/archiva-webapp-test/src/test/it/org/apache/maven/archiva/web/test/LoginTest.java @@ -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" );