Author: Alex.Kolonitsky
Date: 2009-09-14 10:33:48 -0400 (Mon, 14 Sep 2009)
New Revision: 15556
Modified:
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/OpenAreasUseCasesTest.java
Log:
Investigate and fix photoalbum tests
https://jira.jboss.org/jira/browse/RFPL-86
Modified:
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/OpenAreasUseCasesTest.java
===================================================================
---
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/OpenAreasUseCasesTest.java 2009-09-14
14:25:43 UTC (rev 15555)
+++
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/testng/OpenAreasUseCasesTest.java 2009-09-14
14:33:48 UTC (rev 15556)
@@ -14,8 +14,9 @@
*
*/
public class OpenAreasUseCasesTest extends SeleniumTestBase {
+ private static final String LOGIN_VIKING = "Viking";
- @Test
+ @Test
public void testOpenAlbumAndImageWithoutAuthentication() {
renderPage();
RealWorldHelper.openAlbumFromPreview(selenium);
@@ -25,7 +26,7 @@
@Test
public void testOpenAlbumAndImageWithAuthentication() {
renderPage();
- RealWorldHelper.login(selenium, "Viking");
+ RealWorldHelper.login(selenium, LOGIN_VIKING);
RealWorldHelper.openAlbumFromPreview(selenium);
RealWorldHelper.openImageFromPreview(selenium);
}
@@ -33,16 +34,16 @@
@Test
public void testOpenUserProfile() {
renderPage();
- RealWorldHelper.login(selenium, "Viking");
+ RealWorldHelper.login(selenium, LOGIN_VIKING);
selenium.click(HtmlConstants.LogInOutArea.USER_INFO_PATH);
waitForAjaxCompletion();
- RealWorldHelper.testUserProfile(selenium, UserInfoConstants.LOGIN_NAME);
+ RealWorldHelper.testUserProfile(selenium, LOGIN_VIKING);
}
@Test
public void testOpenFilesUpload() {
renderPage();
- RealWorldHelper.login(selenium, "Viking");
+ RealWorldHelper.login(selenium, LOGIN_VIKING);
selenium.click(HtmlConstants.ToolBarArea.ADD_IMAGE_PATH);
waitForAjaxCompletion();
RealWorldHelper.testFilesUpload(selenium);
@@ -52,7 +53,7 @@
@Test
public void testToolbarViewButtons() {
renderPage();
- RealWorldHelper.login(selenium, "Viking");
+ RealWorldHelper.login(selenium, LOGIN_VIKING);
selenium.click(HtmlConstants.ToolBarArea.VIEW_SHELFS_PATH);
waitForAjaxCompletion();