From c91574b1447bdcb0e2995bd6be96daf576f7be02 Mon Sep 17 00:00:00 2001 From: "Edwin L. Punzalan" Date: Sun, 24 Dec 2006 11:39:43 +0000 Subject: [PATCH] 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 --- .../maven/archiva/web/test/LoginTest.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) 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" ); -- 2.39.5