Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Story: logging in to an account
- As an logged out user
- I want to log into my account
- So that I can access my dashboard
- Scenario: account is activated
- Given an account with username: test and password: secret
- And I view the index
- When I click onto the "Login" link
- And I fill in "Name:" with "test"
- And I fill in "Passwort:" with "secret"
- And I click button "Login"
- Then I should be logged in
- And I should be sent to my dashboard
- Scenario: account is not yet activated
- Given an account with username: test and password: secret and activated: false
- And I view the index
- When I click onto the "Login" link
- And I fill in "Name:" with "test"
- And I fill in "Passwort:" with "secret"
- And I click button "Login"
- Then I should not be logged in
- And I should see a flash warning
- Scenario: account does not exist
- Given I view the index
- When I click onto the "Login" link
- And I fill in "Name:" with "test"
- And I fill in "Passwort:" with "secret"
- And I click button "Login"
- Then I should not be logged in
- And I should see a flash warning
Add Comment
Please, Sign In to add comment