Author: jjamrich
Date: 2011-07-01 16:08:38 -0400 (Fri, 01 Jul 2011)
New Revision: 22538
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java
Log:
Change check for valid phase to use phaseInfo.
Removed older way to validate correct phase by locator for item in
phases log by phaseInfo object doing the same job, and beeing better
manageable.
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java 2011-06-30
14:08:03 UTC (rev 22537)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java 2011-07-01
20:08:38 UTC (rev 22538)
@@ -23,7 +23,6 @@
import static
org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardNoRequest;
import static org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardXhr;
-import static org.jboss.test.selenium.locator.LocatorFactory.jq;
import static org.jboss.test.selenium.utils.URLUtils.buildUrl;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
@@ -891,10 +890,9 @@
String selectedDate1 = selenium.getValue(input);
String selectedDate2 = selenium.getText(output);
- String listenerOutput = selenium.getText(jq("ul.phases-list
li:eq(3)"));
assertEquals(selectedDate1, selectedDate2, "Output and calendar's input
should be the same.");
- assertEquals(listenerOutput, "* value changed: null -> " +
selectedDate1);
+ phaseInfo.assertListener(PhaseId.PROCESS_VALIDATIONS, "value changed: null
-> " + selectedDate1);
}
@Test
Show replies by date