Author: jjamrich
Date: 2011-09-12 15:02:49 -0400 (Mon, 12 Sep 2011)
New Revision: 22712
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java
Log:
RFPL-1612: add IssueTracking and fix for event handlers tests for pickList
IssueTracking changed from tracking bug in pickList component to tracking problem with
test, which is false positive. Handlers are working when check manualy, but tests are
still failing. Have to investigate bit more, or find some workaroud to get this working
reliable
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java 2011-09-12
18:38:09 UTC (rev 22711)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java 2011-09-12
19:02:49 UTC (rev 22712)
@@ -35,6 +35,7 @@
import org.jboss.test.selenium.utils.URLUtils;
import org.jboss.test.selenium.waiting.EventFiredCondition;
import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.Test;
/**
@@ -315,16 +316,14 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
public void testOnblur() {
testFireEvent(Event.BLUR, pickListTop);
}
@Test
- public void testOnchange() {
- attributes.setOnchange("metamerEvents += \"change \"");
- addItem("North Carolina");
- waitGui.failWith("Attribute onchange does not work correctly").until(
- new EventFiredCondition(Event.CHANGE));
+ public void testOnchange() {
+ testFireEvent(Event.CHANGE, pickListTop, "change");
}
@Test
@@ -338,6 +337,7 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
public void testOnfocus() {
testFireEvent(Event.FOCUS, pickListTop);
}
@@ -405,16 +405,19 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
public void testOnsourcekeydown() {
testFireEvent(Event.KEYDOWN, pickListSource, "sourcekeydown");
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
public void testOnsourcekeypress() {
testFireEvent(Event.KEYPRESS, pickListSource, "sourcekeypress");
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
public void testOnsourcekeyup() {
testFireEvent(Event.KEYUP, pickListSource, "sourcekeyup");
}
@@ -455,16 +458,19 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
public void testOntargetkeydown() {
testFireEvent(Event.KEYDOWN, pickListTarget, "targetkeydown");
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
public void testOntargetkeypress() {
testFireEvent(Event.KEYPRESS, pickListTarget, "targetkeypress");
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RFPL-1659")
public void testOntargetkeyup() {
testFireEvent(Event.KEYUP, pickListTarget, "targetkeyup");
}
Show replies by date