Author: lfryc(a)redhat.com
Date: 2011-02-25 05:22:45 -0500 (Fri, 25 Feb 2011)
New Revision: 21931
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableScroller.java
Log:
rich:CST - added assertions on subtable visibility after using toggler
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableScroller.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableScroller.java 2011-02-25
09:48:06 UTC (rev 21930)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableScroller.java 2011-02-25
10:22:45 UTC (rev 21931)
@@ -25,6 +25,8 @@
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;
+import static org.testng.Assert.assertTrue;
import java.net.URL;
import java.util.List;
@@ -106,7 +108,11 @@
if (expandMode != ExpandMode.none) {
final RequestType requestType = getRequestTypeForExpandMode();
guard(selenium, requestType).click(toggler);
+ assertFalse(subtable.isVisible());
+ assertTrue(secondSubtable.isVisible());
guard(selenium, requestType).click(toggler);
+ assertTrue(subtable.isVisible());
+ assertTrue(secondSubtable.isVisible());
}
assertEquals(secondDataScroller.getCurrentPage(), secondScrollerPage);
Show replies by date