Author: andrei_exadel
Date: 2009-01-08 06:26:13 -0500 (Thu, 08 Jan 2009)
New Revision: 12151
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java
Log:
RF-5539
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml 2009-01-08
11:17:45 UTC (rev 12150)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxCommandButton/autoTestCommandButton.xhtml 2009-01-08
11:26:13 UTC (rev 12151)
@@ -9,6 +9,7 @@
<ui:composition template="#{templateBean.autoTestTemplate}">
<ui:define name="component">
<a4j:commandButton id="componentId" value="Button"
+ actionListener="#{autoTestBean.actionListener}"
reRender="#{autoTestBean.reRender}"
limitToList="#{autoTestBean.limitToList}"
bypassUpdates="#{autoTestBean.bypassUpdate}"
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java 2009-01-08
11:17:45 UTC (rev 12150)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxCommandButtonTest.java 2009-01-08
11:26:13 UTC (rev 12151)
@@ -37,8 +37,17 @@
tester.testRendered();
}
+
+ @Test
+ public void testBypassUpdates(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+
+ tester.testBypassUpdate();
+
+ }
- //@Test
+ @Test
public void testAjaxCommandButtonComponent(Template template) {
renderPage(template);
@@ -134,6 +143,12 @@
}
@Override
+ public void sendAjax() {
+ String commandId = getAutoTester(this).getClientId(AutoTester.COMPONENT_ID);
+ clickAjaxCommandAndWait(commandId);
+ }
+
+ @Override
public String getAutoTestUrl() {
return "pages/ajaxCommandButton/autoTestCommandButton.xhtml";
}