Author: mgencur(a)redhat.com
Date: 2009-10-13 03:19:00 -0400 (Tue, 13 Oct 2009)
New Revision: 11575
Modified:
branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/PersonTest.java
Log:
fixed seam-gen test
Modified:
branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/PersonTest.java
===================================================================
---
branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/PersonTest.java 2009-10-13
06:55:24 UTC (rev 11574)
+++
branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/PersonTest.java 2009-10-13
07:19:00 UTC (rev 11575)
@@ -56,8 +56,8 @@
createNewPerson(username, address, cal.getTime(), name);
assertTrue(browser.isElementPresent(MESSAGES), "Confirmation message
expected.");
- assertEquals(browser.getText(MESSAGES), "Successfully created",
"Unexpected confirmation message");
-
+ assertTrue(browser.isTextPresent(username) &&
browser.isElementPresent(ENTITY_DONE), "Username and \"Done\" button
expected on page");
+
// search for the person
browser.clickAndWait(ENTITY_DONE);
int result = search(username);
@@ -85,7 +85,7 @@
browser.clickAndWait(PERSON_UPDATE);
// verify
assertTrue(browser.isElementPresent(MESSAGES), "Confirmation message
expected.");
- assertEquals(browser.getText(MESSAGES), "Successfully updated",
"Unexpected confirmation message");
+ assertTrue(browser.isTextPresent(username) &&
browser.isElementPresent(ENTITY_DONE), "Username and \"Done\" button
expected on page");
verifyViewPage(username, address, name);
}
Show replies by date