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