Ignore:
Timestamp:
May 29, 2011, 12:58:10 PM (13 years ago)
Author:
gav
Message:

Functional tests, factor out login method.

File:
1 edited

Legend:

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

    r947 r948  
    1515    }
    1616
    17     def "When we click login we go to the home page"() {
     17    def "When we login, we go to the home page"() {
    1818        when:
    19         to LoginPage
    20         form.j_username = "admin"
    21         form.j_password = "pass"
    22         login.click()
     19        login('admin', 'pass')
    2320
    2421        then:
     
    2623    }
    2724
    28     def "When we click logout, we go to the logout page"() {
     25    def "When we logout, we go to the logout page"() {
    2926        when:
    3027        logout.click()
     
    3734    def "If we type in the wrong password"() {
    3835        when:
    39         to LoginPage
    40         form.j_username = "admin"
    41         form.j_password = "bogus"
    42         login.click()
     36        login('admin', 'bogus')
    4337
    4438        then:
Note: See TracChangeset for help on using the changeset viewer.