]> source.dussan.org Git - archiva.git/commitdiff
use id for testing user deleted as now the confirmation message contains the user...
authorOlivier Lamy <olamy@apache.org>
Fri, 3 Feb 2012 14:56:10 +0000 (14:56 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 3 Feb 2012 14:56:10 +0000 (14:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1240202 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/user-grids.html
archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/parent/AbstractArchivaTest.java

index deb8bc9e4a9dba9f57420c38746f955f7c0e62a8..b0acdd92e0296dba1274fe4f0e8f5b48ecc87001 100644 (file)
@@ -34,7 +34,7 @@
               {{each(j, columnDefinition) columns}}
               <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
               {{/each}}
-              <td><a href="#" data-bind="click: function(){ editUserBox(row) }">Edit</a></td>
+              <td id="users-grid-user-id-${row.username()}"><a href="#" data-bind="click: function(){ editUserBox(row) }">Edit</a></td>
               {{if row.username()=="admin" || row.username()=="guest"}}
                 <td></td>
               {{else}}
index f7e51cb4f92776bcb01d6b39980715138e71e0a4..dd5dab4c3fad2e7a3d4c32ad808be27ff0685c1d 100644 (file)
@@ -236,6 +236,7 @@ public abstract class AbstractArchivaTest
         clickLinkWithLocator( "user-create-form-register-button", true );
 
         assertTextPresent( "user created:"+userName );
+        assertElementPresent( "users-grid-user-id-"+userName );
 
         if ( valid )
         {
@@ -268,7 +269,7 @@ public abstract class AbstractArchivaTest
 
         clickLinkWithLocator( "alert-message-success-close-a" );
 
-        assertTextNotPresent( userName );
+        assertElementNotPresent( "users-grid-user-id-"+userName );
         assertTextNotPresent( fullName );