Author: jjamrich
Date: 2011-06-22 17:18:32 -0400 (Wed, 22 Jun 2011)
New Revision: 22533
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanelAddPanel1.java
Log:
Fixed test for dynamicaly created tabs switching.
The request for tab switch is really HTTP request when tabSwitchType is
"server".
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-06-22
21:18:13 UTC (rev 22532)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTabPanel/TestRichTabPanelAddPanel1.java 2011-06-22
21:18:32 UTC (rev 22533)
@@ -22,6 +22,7 @@
package org.richfaces.tests.metamer.ftest.richTabPanel;
import static
org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardNoRequest;
+import static org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardHttp;
import static org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.guardXhr;
import static org.jboss.test.selenium.utils.URLUtils.buildUrl;
@@ -205,7 +206,7 @@
for (int i = STATIC_TAB_COUNT + MAX_NEW_TAB_COUNT - 1; i >= STATIC_TAB_COUNT;
i--) {
final int index = i;
- guardNoRequest(selenium).click(inactiveHeadersFormat.format(index + 1));
+ guardHttp(selenium).click(inactiveHeadersFormat.format(index + 1));
waitGui.failWith("Tab " + (index + 1) + " is not
displayed.")
.until(isDisplayed.locator(itemContentsFormat.format(index + 1)));
}
Show replies by date