Author: ppitonak(a)redhat.com
Date: 2011-10-12 08:20:01 -0400 (Wed, 12 Oct 2011)
New Revision: 22787
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richEditor/TestRichEditor.java
Log:
tests for rich:editor fixed
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-10-12
11:39:52 UTC (rev 22786)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richEditor/TestRichEditor.java 2011-10-12
12:20:01 UTC (rev 22787)
@@ -37,7 +37,7 @@
private JQueryLocator editorTextArea = pjq("textarea[id$=editor:inp]");
private JQueryLocator editorArea = jq("body");
private JQueryLocator phaseListenerFormat = jq("div#phasesPanel
li:eq({0})");
- private FrameLocator frameLocator = new FrameLocator("jquery=iframe");
+ private FrameLocator frameLocator = new
FrameLocator("jquery=iframe:eq(0)");
private JQueryLocator hSubmit = pjq("input[id$=hButton]");
private JQueryLocator a4jSubmit = pjq("input[id$=a4jButton]");
private JQueryLocator validationMsgLoc = pjq("span.rf-msgs-sum");
@@ -191,9 +191,7 @@
String langVal = "xyz";
editorAttributes.set(lang, langVal);
- // there is lang attribute present in 2 editor's elements
assertTrue(langVal.equals(selenium.getAttribute(editorTextArea.getAttribute(langAttribute))));
-
assertTrue(langVal.equals(selenium.getAttribute(editor.getAttribute(langAttribute))));
}
@Test
@@ -230,6 +228,8 @@
String contentEditableVal = selenium.getAttribute(
editorArea.getAttribute(new Attribute("contenteditable")));
assertTrue("false".equals(contentEditableVal));
+
+ selenium.selectFrame(new FrameLocator("relative=top"));
}
@Test
Show replies by date