Author: vrockai
Date: 2009-05-20 06:27:45 -0400 (Wed, 20 May 2009)
New Revision: 13395
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/IdentityAdminTestCase.java
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/assert.properties
Log:
[selenium] - identity admin fix
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/IdentityAdminTestCase.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/IdentityAdminTestCase.java 2009-05-20
09:43:03 UTC (rev 13394)
+++
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/IdentityAdminTestCase.java 2009-05-20
10:27:45 UTC (rev 13395)
@@ -15,6 +15,8 @@
@Test(groups = { "admin_ui" }, enabled = true)
public class IdentityAdminTestCase extends JBossPortalSeleniumTestCase {
+
+
/** prefix for locator properties */
public String casePfx = "iden.man.";
@@ -83,6 +85,7 @@
private final String CHK_ROLE = getLoc(casePfx + "chk.role",
"//input[contains(@name,''assign-roles-form:roles'') and
@value=''{0}'']");
+ private final String MSG_CREATE_ROLE = getMess(casePfx + "chk.role",
"Create role");
/** The timeout used to wait after clicking submit button in user search. */
public final long SEARCH_TIMEOUT = 10000;
@@ -751,7 +754,7 @@
clickIfVisible(LNK_ROLEMAIN);
Assert.assertTrue(selenium.isElementPresent(LNK_ROLE_CREATE), "Button for role
creating has wrong id or doesn't exist.");
- Assert.assertEquals(selenium.getText(LNK_ROLE_CREATE), "Create role",
"Button for role creating has wrong label.");
+ Assert.assertEquals(selenium.getText(LNK_ROLE_CREATE), MSG_CREATE_ROLE, "Button
for role creating has wrong label.");
selenium.click(LNK_ROLE_CREATE);
selenium.waitForPageToLoad(PAGE_LOAD);
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/assert.properties
===================================================================
---
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/assert.properties 2009-05-20
09:43:03 UTC (rev 13394)
+++
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/assert.properties 2009-05-20
10:27:45 UTC (rev 13395)
@@ -2,6 +2,7 @@
selenium.timeout.ajax=3000
selenium.timeout.elem=220
+iden.man.chk.role=Create new role
cms.sec.denied=You are not allowed to access the resource