Author: lfryc(a)redhat.com
Date: 2011-02-26 10:27:40 -0500 (Sat, 26 Feb 2011)
New Revision: 21950
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAccordion/TestRichAccordion.java
Log:
accordion - fixed test for active item - if disabled item is set in model, first item is
activated instead
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAccordion/TestRichAccordion.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAccordion/TestRichAccordion.java 2011-02-26
15:26:53 UTC (rev 21949)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAccordion/TestRichAccordion.java 2011-02-26
15:27:40 UTC (rev 21950)
@@ -124,8 +124,11 @@
accordionDisplayed = selenium.isDisplayed(itemHeaders[i]);
assertTrue(accordionDisplayed, "Item" + (i + 1) + "'s
header should be visible.");
}
+
+ accordionDisplayed = selenium.isDisplayed(itemContents[0]);
+ assertTrue(accordionDisplayed, "Content of item1 should be visible.");
- for (int i = 0; i < 5; i++) {
+ for (int i = 1; i < 5; i++) {
accordionDisplayed = selenium.isDisplayed(itemContents[i]);
assertFalse(accordionDisplayed, "Item" + (i + 1) + "'s
content should not be visible.");
}
Show replies by date