Author: ppitonak(a)redhat.com
Date: 2011-11-24 09:18:24 -0500 (Thu, 24 Nov 2011)
New Revision: 22999
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanelAddPanel1.java
Log:
test for rich:tabPanel fixed
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanelAddPanel1.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanelAddPanel1.java 2011-11-24
13:53:55 UTC (rev 22998)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanelAddPanel1.java 2011-11-24
14:18:24 UTC (rev 22999)
@@ -106,14 +106,15 @@
// tab switch work at least with "client" option
selenium.click(switchTypeFormat.format(SWITCH_TYPE_CLIENT));
+ selenium.waitForPageToLoad();
System.out.println("testSwitchTypeAjax: tab count: " +
selenium.getCount(tabsCount));
-
- for (int i = STATIC_TAB_COUNT + MAX_NEW_TAB_COUNT - 1; i >= STATIC_TAB_COUNT;
i--) {
- selenium.click(inactiveHeadersFormat.format(i + 1));
- waitGui.failWith("Tab " + (i + 1) + " doesn't display
correct content.").until(
- textEquals.text("Content of dynamicaly created tab" + (i + 1))
- .locator(itemContentsFormat.format(i + 1)));
+
+ for (int i = STATIC_TAB_COUNT + MAX_NEW_TAB_COUNT; i > STATIC_TAB_COUNT; i--)
{
+ selenium.click(inactiveHeadersFormat.format(i));
+ waitGui.failWith("Tab " + i + " doesn't display correct
content.").until(
+ textEquals.text("Content of dynamicaly created tab" + i)
+ .locator(itemContentsFormat.format(i)));
}
}