Last change
on this file since 947 was
947,
checked in by gav, 13 years ago
|
Enhance and refactor functional tests to use pageId (for at{} verify) in main.gsp layout.
|
File size:
511 bytes
|
Rev | Line | |
---|
[917] | 1 | package gnumims.functional.pages |
---|
| 2 | |
---|
[947] | 3 | class LoginPage extends GrailsPage { |
---|
| 4 | static controller = "login" |
---|
| 5 | static action = "auth" |
---|
[917] | 6 | |
---|
| 7 | static content = { |
---|
[947] | 8 | login(to:HomePage) { $('#loginForm input[value=Login]') } |
---|
[938] | 9 | form { $("#loginForm") } |
---|
[917] | 10 | password { $("input[name=j_password]").value() } |
---|
[947] | 11 | message { $("div.login_message").text() } |
---|
[917] | 12 | } |
---|
[947] | 13 | |
---|
| 14 | def verifyLoginFailureMessage() { |
---|
| 15 | assert message.contains("wrong username/password.") |
---|
| 16 | return true |
---|
| 17 | } |
---|
[917] | 18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.