A website template with lots of features, built with ruby on rails.

user_account.feature 967B

1234567891011121314151617181920212223242526
  1. @focus
  2. Feature: User Account
  3. In order to change content in the website
  4. As user of the system
  5. I want to create, update adn delete my user account
  6. Background:
  7. Given the website is configured
  8. Scenario: Registered user login
  9. Given the user "Monty" "Cantsin" with email "monty_cantsin@canada.com" and password "12345678" exists
  10. And I am not logged in
  11. When I go to the login page
  12. Then I should see "Sign In"
  13. And I log in with the email "monty_cantsin@canada.com" and password "12345678"
  14. Then I should see "Signed in successfully"
  15. And I should see "Monty Cantsin"
  16. And I should see "Logout"
  17. Scenario: Registered user logout
  18. Given the user "Monty" "Cantsin" with email "monty_cantsin@canada.com" and password "12345678" exists
  19. And I am not logged in
  20. When I go to the login page
  21. And I log in with the email "monty_cantsin@canada.com" and password "12345678"
  22. Then I click in the link "Logout"
  23. And I should see "Signed out successfully"