Author: jjamrich
Date: 2011-09-12 14:38:09 -0400 (Mon, 12 Sep 2011)
New Revision: 22711
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richEditor/TestRichEditor.java
Log:
Add Issuetracking for @lang and @readonly tests and fix test for title for rich:editor
There is failing test for @lang due to problem with RF, then test for readonly which seems
to be limitation of selenium. And failing test for title was fixed, since there were
ambiguous condition to verify title: no @title present, which is not always met even title
isn't displayed as well
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richEditor/TestRichEditor.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richEditor/TestRichEditor.java 2011-09-12
18:37:50 UTC (rev 22710)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richEditor/TestRichEditor.java 2011-09-12
18:38:09 UTC (rev 22711)
@@ -19,6 +19,7 @@
import org.jboss.test.selenium.utils.URLUtils;
import org.jboss.test.selenium.waiting.selenium.SeleniumCondition;
import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.BeforeMethod;
@@ -189,6 +190,7 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RF-11394")
public void testLang() {
String langVal = "xyz";
attributes.setLang(langVal);
@@ -219,6 +221,7 @@
}
@Test
+ @IssueTracking("https://issues.jboss.org/browse/RFPL-1658")
public void testReadonly() {
typeTextToEditor(text1);
@@ -313,8 +316,8 @@
AttributeLocator<?> attribute = editor.getAttribute(new
Attribute("title"));
// title = null
- assertFalse(selenium.isAttributePresent(attribute), "Attribute title should
not be present.");
-
+ assertFalse(title.equals(selenium.getAttribute(attribute)), "Attribute title
should not be present.");
+
// set title
attributes.setTitle(title);
Show replies by date