Author: konstantin.mishin
Date: 2008-10-30 10:48:59 -0400 (Thu, 30 Oct 2008)
New Revision: 10982
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ListShuttleTest.java
Log:
sourceValue/targetValue not updated, listeners not call using multiple selection with
external validation failure after form submission
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ListShuttleTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ListShuttleTest.java 2008-10-30
13:08:39 UTC (rev 10981)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ListShuttleTest.java 2008-10-30
14:48:59 UTC (rev 10982)
@@ -110,6 +110,37 @@
immediateId = attrFormId + ":immediateId";
}
+ /**
+ * sourceValue/targetValue not updated, listeners not call using multiple selection
with external validation failure after form submission
+ */
+ @Test
+ public void testValidationFailure(Template template) {
+ init(template);
+ Assert.assertEquals(getValueById(inputTextId), "something", "Value
of inputText(id='inputTextId') must equal initial
value('something').");
+ _assertTableRowsCount(sourceTableId, 5);
+ _assertTableRowsCount(targetTableId, 0);
+ _assertTableRowsCount(sourceSelectionTableId, 0);
+ _assertTableRowsCount(targetSelectionTableId, 0);
+
+ _selectItem(parentId + "ls:0", true, false);
+ _selectItem(parentId + "ls:2", true, false);
+
+ clickById(copyId);
+
+ _selectItem(parentId + "ls:1", true, false);
+ _selectItem(parentId + "ls:3", true, false);
+ _selectItem(parentId + "ls:0", true, false);
+
+ selenium.type("id=" + inputTextId, "");
+ clickAjaxCommandAndWait(submitId);
+
+ Assert.assertEquals(getValueById(inputTextId), "", "Value of
inputText(id='inputTextId') must equal changed value('').");
+ _assertTableRowsCount(sourceTableId, 5);
+ _assertTableRowsCount(targetTableId, 0);
+ _assertTableRowsCount(sourceSelectionTableId, 0);
+ _assertTableRowsCount(targetSelectionTableId, 0);
+ }
+
/**
* keyboard navigation works for component
*/
Show replies by date