Author: konstantin.mishin
Date: 2009-05-21 08:29:50 -0400 (Thu, 21 May 2009)
New Revision: 14261
Modified:
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/SeleniumTestBase.java
Log:
RF-6909
Modified:
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java
===================================================================
---
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java 2009-05-21
12:07:22 UTC (rev 14260)
+++
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java 2009-05-21
12:29:50 UTC (rev 14261)
@@ -443,6 +443,12 @@
if (presented) {
selenium.click(HtmlConstants.ImageArea.PREVIEW_PATH + "[" + i +
"]" + HtmlConstants.ImageArea.PREVIEW_LINK_PATH_SUFFIX);
waitForAjaxCompletion(selenium);
+ try {
+ Thread.sleep(5000); // It was do for jboss 5.X
+ }catch (Exception e) {
+ Assert.fail("Test failed caused by: " + e);
+ }
+
testImageArea(selenium, imageName);
}
Modified:
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/SeleniumTestBase.java
===================================================================
---
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/SeleniumTestBase.java 2009-05-21
12:07:22 UTC (rev 14260)
+++
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/SeleniumTestBase.java 2009-05-21
12:29:50 UTC (rev 14261)
@@ -108,6 +108,7 @@
selenium = createSeleniumClient(protocol + "://" + host +
":" + port + "/", browser);
setFileExtensionContent();
selenium.start();
+ selenium.setTimeout("120000"); // It was do for jboss 5.X
selenium.allowNativeXpath("false");
}
}