Author: dsvyatobatsko
Date: 2008-10-01 08:48:33 -0400 (Wed, 01 Oct 2008)
New Revision: 10640
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
Log:
AjaxStatus: test rendered component attribute
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
===================================================================
(Binary files differ)
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2008-10-01
12:29:54 UTC (rev 10639)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2008-10-01
12:48:33 UTC (rev 10640)
@@ -11,6 +11,8 @@
private static final String STATUS_2_ID = "region2:status";
+ private static final String STATUS_3_ID = "region3:status";
+
private static final String BTN_1_ID = "button1";
private static final String BTN_2_ID = "button2";
@@ -89,6 +91,14 @@
}
+ @Test
+ public void testRenderedComponentAttribute(Template template) {
+ renderPage(template);
+
+ writeStatus("Check the component with rendered = false is not present on the
page");
+ AssertNotPresent(getParentId() + "_form:" + STATUS_3_ID);
+ }
+
public String getTestUrl() {
return "pages/ajaxStatus/ajaxStatusTest.xhtml";
}
Show replies by date