Author: jjamrich
Date: 2011-07-12 06:20:29 -0400 (Tue, 12 Jul 2011)
New Revision: 22546
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableFacets.java
Log:
Add waiting condition instead of simple assert.
Test is failing on Hudson event everything seems ok, so maybe there is
problem with time, when condition is evaluated.
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableFacets.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableFacets.java 2011-07-08
14:52:51 UTC (rev 22545)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCollapsibleSubTable/TestCollapsibleSubTableFacets.java 2011-07-12
10:20:29 UTC (rev 22546)
@@ -28,8 +28,12 @@
import java.net.URL;
+import org.jboss.test.selenium.waiting.selenium.SeleniumCondition;
import org.testng.annotations.Test;
+import com.thoughtworks.selenium.condition.Condition;
+import com.thoughtworks.selenium.condition.ConditionRunner.Context;
+
/**
* @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
* @version $Revision$
@@ -51,7 +55,13 @@
attributes.setShowData(false);
assertFalse(subtable.hasVisibleRows());
- assertTrue(subtable.isNoData());
+ // assertTrue(subtable.isNoData());
+ waitModel.until(new SeleniumCondition() {
+ @Override
+ public boolean isTrue() {
+ return subtable.isNoData();
+ }
+ });
facets.setNoData(SAMPLE_STRING);
Show replies by date