source: branches/features/purchaseOrders/test/functional/gnumims/functional/pages/LoginPage.groovy @ 948

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
Line 
1package gnumims.functional.pages
2
3class 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.