Author: vmolotkov
Date: 2008-10-06 09:32:43 -0400 (Mon, 06 Oct 2008)
New Revision: 10671
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java
Log:
a4j support tests
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java 2008-10-06
12:27:20 UTC (rev 10670)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java 2008-10-06
13:32:43 UTC (rev 10671)
@@ -34,7 +34,7 @@
*/
@Test
public void testAjaxSupportComponent(Template template) {
- //checkBasicFunctionality(template);
+ checkBasicFunctionality(template);
}
/**
@@ -68,13 +68,14 @@
private void checkBasicFunctionality(Template template) {
init(template);
- checkCommandComponent();
String data = checkInputComponent();
checkRequestDelayAttribute(data);
+ checkCommandComponent();
}
private void checkCommandComponent() {
- /*clickById(linkId);
+ setValueById(validManagerId, "1");
+ clickById(linkId);
waitForAjaxCompletion();
String data = getTextById(dataId);
checkMessage(data, A4JSupport.Messages.FOR_LINK,
@@ -86,10 +87,11 @@
data = getTextById(dataId);
checkMessage(data, A4JSupport.Messages.FOR_LINK,
"'onclick' ajax support for link[id='_form:linkAL']
failed.",
- A4JSupport.Messages.FOR_LINK + " successful");*/
+ A4JSupport.Messages.FOR_LINK + " successful");
}
private String checkInputComponent() {
+ setValueById(validManagerId, "1");
String checkBoxId = parentFormId + "checkbox";
clickById(checkBoxId);
@@ -109,6 +111,7 @@
}
private void checkRequestDelayAttribute(String data) {
+ setValueById(validManagerId, "1");
String command = parentFormId + "command";
clickById(command);
Show replies by date