[richfaces-svn-commits] JBoss Rich Faces SVN: r13396 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Apr 6 13:45:46 EDT 2009


Author: nbelaevski
Date: 2009-04-06 13:45:45 -0400 (Mon, 06 Apr 2009)
New Revision: 13396

Modified:
   trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxValidatorTest.java
   trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/BeanValidatorTest.java
Log:
Failed AjaxValidator and BeanValidator tests fixed

Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxValidatorTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxValidatorTest.java	2009-04-06 17:34:40 UTC (rev 13395)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxValidatorTest.java	2009-04-06 17:45:45 UTC (rev 13396)
@@ -54,7 +54,7 @@
         assertNotPresent(tfAgeErrMsg);
 
         writeStatus("Name must be between 3 and 12 at length. Type shorter one");
-        type(tfNameId, "Mi");
+        selenium.type(tfNameId, "Mi");
         selenium.fireEvent(tfNameId, "blur");
         waitForAjaxCompletion();
         assertPresent(tfNameErrMsg);
@@ -66,7 +66,7 @@
 
         writeStatus("Correct the inputs and leave. Error messages have to disappear");
 
-        type(tfNameId, "Mick");
+        selenium.type(tfNameId, "Mick");
         selenium.fireEvent(tfNameId, "blur");
         waitForAjaxCompletion();
         assertNotPresent(tfNameErrMsg);
@@ -84,12 +84,12 @@
         String rendered = getParentId() + "attrForm" + ":rendered";
         String tfNameId = getParentId() + "_form:" + NAME;
         String tfNameErrMsg = tfNameId + ERR_MSG_POSTFIX;
-        type(tfNameId, "Mi");
+        selenium.type(tfNameId, "Mi");
         selenium.fireEvent(tfNameId, "blur");
         waitForAjaxCompletion();
         assertPresent(tfNameErrMsg);
 		clickAjaxCommandAndWait(rendered);
-        type(tfNameId, "Mi");
+        selenium.type(tfNameId, "Mi");
         selenium.fireEvent(tfNameId, "blur");
         assertNotPresent(tfNameErrMsg);
    }
@@ -115,36 +115,36 @@
         assertNotPresent(tfEmailErrMsg);
 
         writeStatus("Name must be between 3 and 12 at length. Type shorter one");
-        type(tfNameId, "Mi");
+        selenium.type(tfNameId, "Mi");
         selenium.fireEvent(tfNameId, "blur");
         waitForAjaxCompletion();
         assertPresent(tfNameErrMsg);
 
         writeStatus("Age must be between 18 and 100. Type less than that");
-        type(tfAgeId, "3");
+        selenium.type(tfAgeId, "3");
         selenium.fireEvent(tfAgeId, "blur");
         waitForAjaxCompletion();
         assertPresent(tfAgeErrMsg);
 
         writeStatus("Email must be an email. Type not a well-formed email");
-        type(tfEmailId, "notemail");
+        selenium.type(tfEmailId, "notemail");
         selenium.fireEvent(tfEmailId, "blur");
         waitForAjaxCompletion();
         assertPresent(tfEmailErrMsg);
 
         writeStatus("Correct the inputs and leave. Error messages have to disappear");
 
-        type(tfNameId, "Mick");
+        selenium.type(tfNameId, "Mick");
         selenium.fireEvent(tfNameId, "blur");
         waitForAjaxCompletion();
         assertNotPresent(tfNameErrMsg);
 
-        type(tfAgeId, "33");
+        selenium.type(tfAgeId, "33");
         selenium.fireEvent(tfAgeId, "blur");
         waitForAjaxCompletion();
         assertNotPresent(tfAgeErrMsg);
 
-        type(tfEmailId, "email at ya.com");
+        selenium.type(tfEmailId, "email at ya.com");
         selenium.fireEvent(tfEmailId, "blur");
         waitForAjaxCompletion();
         assertNotPresent(tfEmailErrMsg);

Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/BeanValidatorTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/BeanValidatorTest.java	2009-04-06 17:34:40 UTC (rev 13395)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/BeanValidatorTest.java	2009-04-06 17:45:45 UTC (rev 13396)
@@ -61,13 +61,13 @@
         assertNotPresent(tfEmailErrMsg);
 
         writeStatus("Name must be between 3 and 12 at length. Type shorter one");
-        type(tfNameId, "Mi");
+        selenium.type(tfNameId, "Mi");
 
         writeStatus("Age must be between 18 and 100. Type less than that");
-        type(tfAgeId, "3");
+        selenium.type(tfAgeId, "3");
 
         writeStatus("Email must be an email. Type not a well-formed email");
-        type(tfEmailId, "notemail");
+        selenium.type(tfEmailId, "notemail");
 
         submit();
 
@@ -79,9 +79,9 @@
 
         writeStatus("Correct the inputs and resubmit form. Error messages have to disappear");
 
-        type(tfNameId, "Mick");
-        type(tfAgeId, "33");
-        type(tfEmailId, "email at ya.com");
+        selenium.type(tfNameId, "Mick");
+        selenium.type(tfAgeId, "33");
+        selenium.type(tfEmailId, "email at ya.com");
 
         submit();
 




More information about the richfaces-svn-commits mailing list