Author: ppitonak(a)redhat.com
Date: 2011-01-04 07:52:34 -0500 (Tue, 04 Jan 2011)
New Revision: 20873
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java
Log:
* fixed two tests for rich:calendar - testBoundaryDatesModeNull and
testBoundaryDatesModeInactive
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-01-03
14:41:10 UTC (rev 20872)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarAttributes.java 2011-01-04
12:52:34 UTC (rev 20873)
@@ -66,10 +66,11 @@
assertEquals(newMonth, month, "Month should not change.");
// the most top-left column might be 1st day of month
- while (selenium.getText(cellWeekDay.format(1, 0)).equals("1")) {
+ while (selenium.getText(cellWeekDay.format(1, 1)).equals("1")) {
selenium.click(prevMonthButton);
}
+ month = selenium.getText(monthLabel);
guardNoRequest(selenium).click(cellWeekDay.format(1, 1));
newMonth = selenium.getText(monthLabel);
assertEquals(newMonth, month, "Month should not change.");
Show replies by date