Author: dsvyatobatsko
Date: 2008-05-22 07:38:01 -0400 (Thu, 22 May 2008)
New Revision: 8688
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java
Log:
some improvements
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java 2008-05-22
11:15:52 UTC (rev 8687)
+++
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxRegionTest.java 2008-05-22
11:38:01 UTC (rev 8688)
@@ -42,49 +42,53 @@
String parentId = getParentId() + "_form:";
- //test nested regions
+ writeStatus("check nested regions");
+
String externalLink = parentId + "externalLink";
String internalLink = parentId + "internalLink";
String internalElemId = parentId + "internal";
String externalElemId = parentId + "external";
- setValueById(internalElemId, "5");
- setValueById(externalElemId, "5");
+ selenium.type(internalElemId, "5");
+ selenium.type(externalElemId, "5");
clickById(internalLink);
waitForAjaxCompletion();
AssertValueEquals(internalElemId, "5");
AssertValueEquals(externalElemId, "0");
- setValueById(internalElemId, "10");
- setValueById(externalElemId, "10");
+ selenium.type(internalElemId, "10");
+ selenium.type(externalElemId, "10");
clickById(externalLink);
waitForAjaxCompletion();
AssertValueEquals(internalElemId, "10");
AssertValueEquals(externalElemId, "10");
- //test "selfRendered" attribute
+ writeStatus("verify \"selfRendered\" component's
attribute");
+
String selfRenderedLink = parentId + "selfRenderedLink";
clickById(selfRenderedLink);
waitForAjaxCompletion();
AssertNotPresent("transientText");
- //test "renderRegionOnly" attribute
+ writeStatus("verify \"renderRegionOnly\" component's
attribute");
+
String renderOnlyLink = parentId + "renderOnlyLink";
String renderLink = parentId + "renderLink";
String renderOnlyElemId = parentId + "renderOnly";
String renderElemId = parentId + "render";
- setValueById(renderOnlyElemId, "7");
+ selenium.type(renderOnlyElemId, "7");
+
clickById(renderOnlyLink);
AssertValueEquals(renderOnlyElemId, "7");
AssertValueEquals(renderElemId, "0");
- setValueById(renderElemId, "11");
+ selenium.type(renderElemId, "11");
clickById(renderLink);
AssertValueEquals(renderOnlyElemId, "11");