Guest User

Untitled

a guest
Apr 15th, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Story: logging in to an account
  2. As an logged out user
  3. I want to log into my account
  4. So that I can access my dashboard
  5.  
  6. Scenario: account is activated
  7. Given an account with username: test and password: secret
  8. And I view the index
  9.  
  10. When I click onto the "Login" link
  11. And I fill in "Name:" with "test"
  12. And I fill in "Passwort:" with "secret"
  13. And I click button "Login"
  14.  
  15. Then I should be logged in
  16. And I should be sent to my dashboard
  17.  
  18. Scenario: account is not yet activated
  19. Given an account with username: test and password: secret and activated: false
  20. And I view the index
  21.  
  22. When I click onto the "Login" link
  23. And I fill in "Name:" with "test"
  24. And I fill in "Passwort:" with "secret"
  25. And I click button "Login"
  26.  
  27. Then I should not be logged in
  28. And I should see a flash warning
  29.  
  30. Scenario: account does not exist
  31. Given I view the index
  32.  
  33. When I click onto the "Login" link
  34. And I fill in "Name:" with "test"
  35. And I fill in "Passwort:" with "secret"
  36. And I click button "Login"
  37.  
  38. Then I should not be logged in
  39. And I should see a flash warning
Add Comment
Please, Sign In to add comment