Changeset 912 for branches


Ignore:
Timestamp:
Apr 28, 2011, 8:11:53 PM (14 years ago)
Author:
JohnYesberg
Message:

Login tests (er, Specs!) that work in grails test-app.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/features/purchaseOrders/test/functional/gnumims/functional/LoginSpec.groovy

    r901 r912  
    1010
    1111@Stepwise
    12 class LoginTests extends GebReportingSpec {
     12class LoginSpec extends GebReportingSpec {
    1313    String getBaseUrl() { "http://localhost:8080/gnumims" }
    1414    File getReportDir() { new File("target/reports/geb") }
     
    2525        when:
    2626        to LoginPage
     27        form.j_username = "admin"
     28        form.j_password = "pass"
    2729        login.click(HomePage)
    2830
     
    4345        when:
    4446        to LoginPage
     47        form.j_username = "admin"
    4548        form.j_password = "bogus"
    4649        login.click(LoginPage)
    4750
    4851        then:
    49         $("div.login_message").text() == "[manager] wrong username/password."
     52        $("div.login_message").text() == "[admin] wrong username/password."
    5053    }
    5154
Note: See TracChangeset for help on using the changeset viewer.