Author: vrockai
Date: 2009-06-23 10:48:03 -0400 (Tue, 23 Jun 2009)
New Revision: 13488
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
Log:
[JBPORTAL-2418] - selenium; one more assert
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2009-06-23
14:45:50 UTC (rev 13487)
+++
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/DashboardTestCase.java 2009-06-23
14:48:03 UTC (rev 13488)
@@ -13,9 +13,12 @@
@Test(groups = { "cms_dashboard" }, enabled = true, description =
"Dashboard issues test case.")
public class DashboardTestCase extends JBossPortalSeleniumTestCase {
+
/** prefix for locator properties = dash. */
public String casePfx = "dash.";
+ private final String MSG_NO_PORTLET = getMess(casePfx
+ + "msg.no.portlet", "You must select a content type!");
private final String MSG_WINDOW_NAME_VALID = getMess(casePfx
+ "msg.window.name.valid", "is an invalid window name");
private final String MSG_PAGE_RENAME_VALID = getMess(casePfx
@@ -599,6 +602,7 @@
Assert.assertFalse(selenium.getValue(INP_WINDOW_NAME).equals(XSS_STR1),
"XSS string found on the page in window name input.");
+ Assert.assertTrue(selenium.isTextPresent(MSG_NO_PORTLET),"Message about no portlet
selected missing or other then expected");
}
//
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=143023