directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-commander git commit: FC-181 - cleanup test cases
Date Tue, 20 Sep 2016 18:55:45 GMT
Repository: directory-fortress-commander
Updated Branches:
  refs/heads/master e6b13ba08 -> 4947fe9cd


 FC-181 - cleanup test cases


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/commit/4947fe9c
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/tree/4947fe9c
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/diff/4947fe9c

Branch: refs/heads/master
Commit: 4947fe9cdafe54765aed842dcc0fc5d3b9a8a8ff
Parents: e6b13ba
Author: Shawn McKinney <smckinney@apache.org>
Authored: Tue Sep 20 13:51:45 2016 -0500
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Tue Sep 20 13:51:45 2016 -0500

----------------------------------------------------------------------
 .../fortress/web/integration/FortressWebSeleniumITCase.java   | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/blob/4947fe9c/src/test/java/org/apache/directory/fortress/web/integration/FortressWebSeleniumITCase.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/directory/fortress/web/integration/FortressWebSeleniumITCase.java
b/src/test/java/org/apache/directory/fortress/web/integration/FortressWebSeleniumITCase.java
index de56bcc..56ba809 100644
--- a/src/test/java/org/apache/directory/fortress/web/integration/FortressWebSeleniumITCase.java
+++ b/src/test/java/org/apache/directory/fortress/web/integration/FortressWebSeleniumITCase.java
@@ -211,6 +211,9 @@ public class FortressWebSeleniumITCase
 
     private void users()
     {
+        String TEST_ROLE_NAME = "T15ROLE1";
+        String TEST_ADMIN_ROLE_NAME = "T3AdmRle1";
+
         /*****
          *  USERS_PAGE TESTS
          */
@@ -263,7 +266,7 @@ public class FortressWebSeleniumITCase
         TUtils.sleep( 1 );
         driver.findElement( By.id( GlobalIds.ROLE_ASSIGNMENTS_LABEL ) ).click();
         //( ( JavascriptExecutor ) driver ).executeScript( "$(document.getElementById('roles')).val('role1');"
);
-        driver.findElement( By.id( GlobalIds.ASSIGN_NEW_ROLE ) ).sendKeys( "ROLE_USERS" );
+        driver.findElement( By.id( GlobalIds.ASSIGN_NEW_ROLE ) ).sendKeys( TEST_ROLE_NAME
);
         driver.findElement( By.id( GlobalIds.BEGIN_TIME_RC ) ).clear();
         driver.findElement( By.id( GlobalIds.BEGIN_TIME_RC ) ).sendKeys( "8:00 AM" );
         driver.findElement( By.id( GlobalIds.END_TIME_RC ) ).clear();
@@ -312,7 +315,7 @@ public class FortressWebSeleniumITCase
             */
         //( ( JavascriptExecutor ) driver ).executeScript( "$(document.getElementById('adminRoles')).val"
+
         //    "('DemoAdminUsers');" );
-        driver.findElement( By.id( GlobalIds.ASSIGN_NEW_ADMIN_ROLE ) ).sendKeys( "o" );
+        driver.findElement( By.id( GlobalIds.ASSIGN_NEW_ADMIN_ROLE ) ).sendKeys( TEST_ADMIN_ROLE_NAME
);
         driver.findElement( By.id( GlobalIds.BEGIN_TIME_ARC ) ).clear();
         driver.findElement( By.id( GlobalIds.BEGIN_TIME_ARC ) ).sendKeys( "8:00 AM" );
         driver.findElement( By.id( GlobalIds.END_TIME_ARC ) ).clear();


Mime
View raw message