Author: mgencur(a)redhat.com
Date: 2010-07-21 07:17:50 -0400 (Wed, 21 Jul 2010)
New Revision: 13458
Modified:
branches/enterprise/JBPAPP_5_0/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/SeleniumExcelTest.java
Log:
JBPAPP-4258 excel test fixed so that it will not contains special characters causing
problems on windows
Modified:
branches/enterprise/JBPAPP_5_0/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/SeleniumExcelTest.java
===================================================================
---
branches/enterprise/JBPAPP_5_0/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/SeleniumExcelTest.java 2010-07-21
10:41:19 UTC (rev 13457)
+++
branches/enterprise/JBPAPP_5_0/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/SeleniumExcelTest.java 2010-07-21
11:17:50 UTC (rev 13458)
@@ -3,12 +3,12 @@
import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
-import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertTrue;
public class SeleniumExcelTest extends SeamSeleniumTest
{
public static final String HOME_PAGE = "/home.seam";
- public static final String HOME_PAGE_TITLE = "Microsoft® Excel® Export
examples";
+ public static final String[] HOME_PAGE_TITLE = new String[] {"Microsoft",
"Excel", "Export examples"};
@BeforeMethod
@Override
@@ -22,6 +22,8 @@
*/
@Test
public void homePageLoadTest() {
- assertEquals("Unexpected page title.", HOME_PAGE_TITLE,
browser.getTitle());
+ boolean result = browser.getTitle().contains(HOME_PAGE_TITLE[0]) &&
browser.getTitle().contains(HOME_PAGE_TITLE[1]) &&
+ browser.getTitle().contains(HOME_PAGE_TITLE[2]);
+ assertTrue("Unexpected page title.", result);
}
}
Show replies by date