Author: ppitonak(a)redhat.com
Date: 2011-02-01 10:44:13 -0500 (Tue, 01 Feb 2011)
New Revision: 21362
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java
Log:
* fixed tests for inplace select
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java 2011-02-01
15:23:29 UTC (rev 21361)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelect.java 2011-02-01
15:44:13 UTC (rev 21362)
@@ -415,7 +415,6 @@
selenium.click(options.format(10));
assertFalse(selenium.isDisplayed(popup), "Popup should not be
displayed.");
- assertFalse(selenium.isDisplayed(label), "Label should not be
displayed.");
assertEquals(selenium.getValue(input), "Hawaii", "Input should
contain selected value.");
}
@@ -428,11 +427,9 @@
assertTrue(selenium.isDisplayed(popup), "Popup should be displayed.");
selenium.click(options.format(10));
- assertFalse(selenium.isDisplayed(label), "Label should not be
displayed.");
assertFalse(selenium.isDisplayed(popup), "Popup should not be
displayed.");
selenium.fireEvent(input, Event.BLUR);
- assertFalse(selenium.isDisplayed(label), "Label should not be
displayed.");
assertFalse(selenium.isDisplayed(popup), "Popup should not be
displayed.");
assertEquals(selenium.getValue(input), "Hawaii", "Input should
contain selected value.");
}
@@ -447,7 +444,6 @@
selenium.click(options.format(10));
assertFalse(selenium.isDisplayed(popup), "Popup should not be
displayed.");
- assertFalse(selenium.isDisplayed(label), "Label should not be
displayed.");
assertEquals(selenium.getValue(input), "Hawaii", "Input should
contain selected value.");
}
@@ -462,11 +458,9 @@
assertTrue(selenium.isDisplayed(popup), "Popup should be displayed.");
selenium.click(options.format(10));
- assertFalse(selenium.isDisplayed(label), "Label should not be
displayed.");
assertFalse(selenium.isDisplayed(popup), "Popup should not be
displayed.");
-
+
guardNoRequest(selenium).fireEvent(input, Event.BLUR);
- assertFalse(selenium.isDisplayed(label), "Label should not be
displayed.");
assertFalse(selenium.isDisplayed(popup), "Popup should not be
displayed.");
assertEquals(selenium.getValue(input), "Click here to edit",
"Input should contain default label.");
}
@@ -506,7 +500,6 @@
selenium.click(select);
selenium.click(options.format(10));
- assertFalse(selenium.isDisplayed(label), "Label should not be
displayed.");
assertFalse(selenium.isDisplayed(popup), "Popup should not be
displayed.");
selenium.mouseDown(okButton);
@@ -526,7 +519,6 @@
selenium.click(select);
selenium.click(options.format(10));
- assertFalse(selenium.isDisplayed(label), "Label should not be
displayed.");
assertFalse(selenium.isDisplayed(popup), "Popup should not be
displayed.");
selenium.click(cancelButton);
Show replies by date