Last change
on this file since 948 was
948,
checked in by gav, 13 years ago
|
Functional tests, factor out login method.
|
File size:
517 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 = { |
---|
[948] | 8 | loginButton(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.