[seam-commits] Seam SVN: r14284 - branches/community/Seam_2_3/examples/seamspace/seamspace-tests/src/test/java/org/jboss/seam/example/seamspace/test/selenium.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Feb 1 08:24:55 EST 2012
Author: maschmid
Date: 2012-02-01 08:24:53 -0500 (Wed, 01 Feb 2012)
New Revision: 14284
Modified:
branches/community/Seam_2_3/examples/seamspace/seamspace-tests/src/test/java/org/jboss/seam/example/seamspace/test/selenium/RoleTest.java
branches/community/Seam_2_3/examples/seamspace/seamspace-tests/src/test/java/org/jboss/seam/example/seamspace/test/selenium/SeleniumSeamSpaceTest.java
Log:
fix the seamspace ftest
Modified: branches/community/Seam_2_3/examples/seamspace/seamspace-tests/src/test/java/org/jboss/seam/example/seamspace/test/selenium/RoleTest.java
===================================================================
--- branches/community/Seam_2_3/examples/seamspace/seamspace-tests/src/test/java/org/jboss/seam/example/seamspace/test/selenium/RoleTest.java 2012-02-01 12:30:33 UTC (rev 14283)
+++ branches/community/Seam_2_3/examples/seamspace/seamspace-tests/src/test/java/org/jboss/seam/example/seamspace/test/selenium/RoleTest.java 2012-02-01 13:24:53 UTC (rev 14284)
@@ -97,6 +97,8 @@
assertTrue("New role not found.", browser.isElementPresent(roleRow));
browser.chooseOkOnNextConfirmation();
browser.clickAndWait(roleRow + ROLE_TABLE_DELETE);
+ String confirmation = browser.getConfirmation();
+ assertTrue("Expected role deletion confirmation.", confirmation.contains(ROLE_TABLE_DELETE_CONFIRMATION));
assertFalse("Removed role still present.", browser.isElementPresent(roleRow));
}
Modified: branches/community/Seam_2_3/examples/seamspace/seamspace-tests/src/test/java/org/jboss/seam/example/seamspace/test/selenium/SeleniumSeamSpaceTest.java
===================================================================
--- branches/community/Seam_2_3/examples/seamspace/seamspace-tests/src/test/java/org/jboss/seam/example/seamspace/test/selenium/SeleniumSeamSpaceTest.java 2012-02-01 12:30:33 UTC (rev 14283)
+++ branches/community/Seam_2_3/examples/seamspace/seamspace-tests/src/test/java/org/jboss/seam/example/seamspace/test/selenium/SeleniumSeamSpaceTest.java 2012-02-01 13:24:53 UTC (rev 14284)
@@ -74,6 +74,7 @@
public static final String ROLE_TABLE_ROLES = "/td[2]";
public static final String ROLE_TABLE_DELETE = "//a[contains(@id, \"delete\")]";
public static final String ROLE_TABLE_EDIT = "//a[contains(@id, \"edit\")]";
+ public static final String ROLE_TABLE_DELETE_CONFIRMATION = "Are you sure you wish to delete this role? This action cannot be undone.";
public static final String DEFAULT_USERNAME = "demo";
public static final String DEFAULT_PASSWORD = "demo";
More information about the seam-commits
mailing list