Author: lfryc(a)redhat.com
Date: 2010-09-03 00:41:04 -0400 (Fri, 03 Sep 2010)
New Revision: 19104
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jStatus/TestReferencedUsage.java
Log:
a4j:status - fixed testDoubleClick; disabling
testClickFirstButtonThenSecondButtonThenAgainFirstButtonImmediately (see comment)
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jStatus/TestReferencedUsage.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jStatus/TestReferencedUsage.java 2010-09-03
03:53:33 UTC (rev 19103)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jStatus/TestReferencedUsage.java 2010-09-03
04:41:04 UTC (rev 19104)
@@ -92,9 +92,12 @@
disableHalt();
}
- @Test
+ /**
+ * @Test
+ * TODO: selenium is causing 3 requests, but manually we triggers 2 requests (use
Firebug to reproduce)
+ */
public void testClickFirstButtonThenSecondButtonThenAgainFirstButtonImmediately() {
- enableHalt();
+ enableHalt();
selenium.click(button1);
selenium.click(button2);
selenium.click(button1);
@@ -116,12 +119,11 @@
public void testDoubleClick() {
enableHalt();
selenium.click(button1);
- selenium.click(button2);
- selenium.click(button1);
waitForHalt();
assertEquals(retrieveStatus1.retrieve(), "START");
assertEquals(retrieveStatus2.retrieve(), "STOP");
unhalt();
+ selenium.click(button1);
waitForHalt();
assertEquals(retrieveStatus1.retrieve(), "START");
assertEquals(retrieveStatus2.retrieve(), "STOP");
Show replies by date