continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wsm...@apache.org
Subject svn commit: r507420 - /maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AccountSecurityTest.java
Date Wed, 14 Feb 2007 06:50:47 GMT
Author: wsmoak
Date: Tue Feb 13 22:50:47 2007
New Revision: 507420

URL: http://svn.apache.org/viewvc?view=rev&rev=507420
Log:
Update integration tests, user roles are now edited on a second page.
Two failures remain in testPasswordCreationValidation and testDefaultRolesOfNewSystemAdministrator.
CONTINUUM-1166

Modified:
    maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AccountSecurityTest.java

Modified: maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AccountSecurityTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AccountSecurityTest.java?view=diff&rev=507420&r1=507419&r2=507420
==============================================================================
--- maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AccountSecurityTest.java
(original)
+++ maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/AccountSecurityTest.java
Tue Feb 13 22:50:47 2007
@@ -83,6 +83,7 @@
                 {
                     // TODO! this is due to a bug where roles are not removed with the user,
so remove them by hand [CONTINUUM-1095]
                     clickLinkWithText( CUSTOM_USERNAME5 );
+                    clickLinkWithText( "Edit Roles" );
                     checkField( "removeRolesFromUser_removeSelectedRolesSystem Administrator"
);
                     clickButtonWithValue( "Remove Selected Roles" );
                 }
@@ -242,14 +243,15 @@
         createUser( CUSTOM_USERNAME5, CUSTOM_FULLNAME, CUSTOM_EMAILADD, CUSTOM_PASSWORD,
true );
 
         // upgrade the role of the user to system administrator
-        //TODO: check Permanent/validated/locked columns
-        String[] columnValues = {CUSTOM_USERNAME5, CUSTOM_FULLNAME, CUSTOM_EMAILADD};
-        clickLinkWithText( CUSTOM_USERNAME5 );
-
+        assertUserRolesPage();
         checkField( "addRolesToUser_addSelectedRolesSystem Administrator" );
         clickButtonWithValue( "Add Selected Roles" );
 
-        // verify roles        
+        // after adding roles, we are returned to the list of users
+        //TODO: check Permanent/validated/locked columns
+        clickLinkWithText( CUSTOM_USERNAME5 );
+
+        // verify roles
         String[] roleList = {"System Administrator", "User Administrator", 
             "Continuum Group Project Administrator", "Project Developer - Default Project
Group",
             "Project User - Default Project Group"};
@@ -278,6 +280,10 @@
         setFieldValue( CREATE_FORM_PASSWORD_FIELD, password );
         setFieldValue( CREATE_FORM_CONFIRM_PASSWORD_FIELD, confirmPassword );
         submit();
+
+        // click past second page without adding any roles
+        assertUserRolesPage();
+        clickButtonWithValue( "Add Selected Roles" );
 
         if ( valid )
         {



Mime
View raw message