Changeset 952 for branches/features/purchaseOrders/test/functional/gnumims
- Timestamp:
- May 30, 2011, 12:55:02 PM (13 years ago)
- Location:
- branches/features/purchaseOrders/test/functional/gnumims/functional/pages
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/purchaseOrders/test/functional/gnumims/functional/pages/GrailsPage.groovy
r947 r952 39 39 controllerName { pageId.split('\\.')[0] } 40 40 actionName { pageId.split('\\.')[1] } 41 logoutButton(to:LogoutPage, required: false) { $("a[class=logoutButton]") } 42 message { $("div.body div.message").text() } 43 } 44 45 def verifyLoggedIn() { 46 assert logoutButton 47 return true 48 49 } 50 51 def verifyLoggedOut() { 52 assert !logoutButton 53 return true 54 41 55 } 42 56 -
branches/features/purchaseOrders/test/functional/gnumims/functional/pages/HomePage.groovy
r947 r952 6 6 7 7 static content = { 8 message { $("div.body div.message").text() }9 logout(to:LogoutPage) { $("a[class=logoutButton]") }10 8 } 11 9 } -
branches/features/purchaseOrders/test/functional/gnumims/functional/pages/LoginPage.groovy
r948 r952 13 13 14 14 def verifyLoginFailureMessage() { 15 assert message.contains("wrong username/password .")15 assert message.contains("wrong username/password") 16 16 return true 17 17 }
Note: See TracChangeset
for help on using the changeset viewer.