bsag / tracks

Tracks is a GTD(TM) web application, built with Ruby on Rails

This URL has Read+Write access

tracks / stories / login / logging_in.story
100644 22 lines (18 sloc) 0.808 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Story: Existing user logging in
 
  As an existing user
  I want to log in with my username and password
  So that I can securely get things done
  
  Scenario: Login success
    Given an admin user Reinier with the password abracadabra
    And Reinier is not logged in
    When Reinier visits the login page
    And Reinier successfully submits the login form
    Then Reinier should see the tasks listing page
    And Reinier should see the message Login successful
    
  Scenario: Login failure
    Given an admin user Reinier with the password abracadabra
    And Reinier is not logged in
    When Reinier visits the login page
    And Reinier submits the login form with an incorrect password
    Then Reinier should see the login page again
    And Reinier should see the message Login unsuccessful