Author: mposolda(a)redhat.com
Date: 2009-07-07 19:59:53 -0400 (Tue, 07 Jul 2009)
New Revision: 13529
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/LdapIdentityAdminTestCase.java
Log:
Refactoring of LdapIdentityAdminTestCase to fix test failures.
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/LdapIdentityAdminTestCase.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/LdapIdentityAdminTestCase.java 2009-07-07
22:28:02 UTC (rev 13528)
+++
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/LdapIdentityAdminTestCase.java 2009-07-07
23:59:53 UTC (rev 13529)
@@ -108,15 +108,15 @@
Assert.assertTrue(selenium.getValue("//input[contains(@id,'profile-form:location')]").contains("Brno,
Czechue Republic"), "Location should contains Brno,Czechue Republic but is
" +
selenium.getValue("//input[contains(@id,'profile-form:location')]"));
Assert.assertTrue(selenium.getValue("//textarea[contains(@id,'profile-form:extra')]").contains("This
is content of ldap attribute \"description\""), "Description has value
" +
selenium.getValue("//textarea[contains(@id,'profile-form:extra')]"));
- // fill some attributes (homepage should be DB attribute and signature should be LDAP
attribute) and check them.
+ // fill some attributes (homepage should be DB attribute and givenname should be LDAP
attribute) and check them.
selenium.type("//input[contains(@id,'profile-form:givenname')]",
"Jack");
- selenium.type("//textarea[contains(@id,'profile-form:signature')]",
"This is signature");
+ selenium.type("//input[contains(@id,'profile-form:homepage')]",
"http://www.jboss.org/jbossportal");
clickAndWait(SUB_EDIT_PROF);
goToEdit(LDAP1_USER, LDAP1_USER_MAIL);
Assert.assertTrue(selenium.getValue("//input[contains(@id,'profile-form:givenname')]").equals("Jack"),
"First name should be Jack but is " +
selenium.getValue("//input[contains(@id,'profile-form:givenname')]"));
- Assert.assertTrue(selenium.getValue("//textarea[contains(@id,'profile-form:signature')]").equals("This
is signature"), "Signature should be 'This is signature' but is " +
selenium.getValue("//input[contains(@id,'profile-form:signature')]"));
- // Change signature to the original value
- selenium.type("//textarea[contains(@id,'profile-form:givenname')]",
LDAP1_FIRST_NAME);
+ Assert.assertTrue(selenium.getValue("//input[contains(@id,'profile-form:homepage')]").equals("http://www.jboss.org/jbossportal"),
"Homepage should be
http://www.jboss.org/jbossportal but is " +
selenium.getValue("//input[contains(@id,'profile-form:homepage')]"));
+ // Change name to the original value
+ selenium.type("//input[contains(@id,'profile-form:givenname')]",
LDAP1_FIRST_NAME);
clickAndWait(SUB_EDIT_PROF);
}