Author: nbelaevski
Date: 2009-04-27 07:48:11 -0400 (Mon, 27 Apr 2009)
New Revision: 13885
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
CalendarTest#testShowApplyButton fixed
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-04-27
10:46:56 UTC (rev 13884)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-04-27
11:48:11 UTC (rev 13885)
@@ -302,7 +302,7 @@
}
Calendar changeCurrentDate(Calendar c, boolean wait4ajax) {
- selenium.click("//td[@id='" + calendarHeaderId +
"']/table/tbody/tr/td/div");
+ selenium.click("//td[@id='" + calendarHeaderId +
"']/table/tbody/tr/td/div");
if (wait4ajax) {
waitForAjaxCompletion();
}
@@ -1285,7 +1285,7 @@
Assert.assertTrue(isVisible(applyButtonXpath), "Apply button is not
visible");
check(showApplyButtonId, false);
- Assert.assertFalse(isVisible(applyButtonXpath), "Apply button is
visible");
+ Assert.assertFalse(isPresent(applyButtonXpath), "Apply button is
visible");
}
@Test