Author: Alex.Kolonitsky
Date: 2009-09-15 13:34:28 -0400 (Tue, 15 Sep 2009)
New Revision: 15587
Modified:
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/layout/template.xhtml
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java
Log:
Investigate and fix photoalbum tests
https://jira.jboss.org/jira/browse/RFPL-86
rewrite header
Modified:
branches/community/3.3.X/examples/photoalbum/source/web/src/main/webapp/layout/template.xhtml
===================================================================
(Binary files differ)
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-09-15
16:56:43 UTC (rev 15586)
+++
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java 2009-09-15
17:34:28 UTC (rev 15587)
@@ -199,12 +199,13 @@
public static void login(SeleniumTestBase seleniumTest, String name, String password)
{
Selenium selenium = seleniumTest.selenium;
- if (isLogined(selenium)) {
- logout(selenium);
- }
for (int i = 0; i < 5; i++) {
try {
+ if (isLogined(selenium)) {
+ logout(selenium);
+ }
+
selenium.click(HtmlConstants.LogInOutArea.LOGIN_ID);
delay();
break;
@@ -213,8 +214,8 @@
System.out.println("RealWorldHelper.login not found '" + i
+ "'");
}
+ seleniumTest.renderPage();
delay(10000);
- seleniumTest.renderPage();
}
Assert.assertTrue(selenium.isVisible(HtmlConstants.LoginPanel.usernameId), "Input
for username in not visible");