Author: konstantin.mishin
Date: 2009-02-12 12:23:26 -0500 (Thu, 12 Feb 2009)
New Revision: 12644
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java
Log:
RF-6065
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java 2009-02-12
16:06:24 UTC (rev 12643)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java 2009-02-12
17:23:26 UTC (rev 12644)
@@ -169,6 +169,23 @@
Assert.assertEquals(selenium.getText(message), "Value mustn't be equal
44.");
}
+ /**
+ * The same as for RF-6064 but for the case of validation failure.
+ * Submitted value should be output back unchanged after submit
+ */
+ @Test
+ public void testValidationFailure(Template template) {
+ init(template);
+ Assert.assertEquals(selenium.getText(value), "");
+ Assert.assertEquals(selenium.getText(message), "");
+ selenium.click(comboboxButton);
+ selenium.mouseMove("xpath=id('" + list + "')/span[4]");
+ selenium.click("xpath=id('" + list + "')/span[4]");
+ clickAjaxCommandAndWait(submit);
+ Assert.assertEquals(selenium.getText(value), "");
+ Assert.assertEquals(selenium.getText(message), "Value mustn't be equal
44.");
+ }
+
public String getTestUrl() {
return "pages/comboBox/comboBoxTest.xhtml";
}
Show replies by date