login.feature 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Feature: login
  2. Scenario: log in with valid user and password
  3. Given I visit the Home page
  4. When I log in with user user0 and password 123456acb
  5. Then I see that the current page is the Files app
  6. Scenario: try to log in with valid user and invalid password
  7. Given I visit the Home page
  8. When I log in with user user0 and password 654321
  9. Then I see that the current page is the Login page
  10. And I see that a wrong password message is shown
  11. Scenario: log in with valid user and invalid password once fixed by admin
  12. Given I act as John
  13. And I can not log in with user user0 and password 654231
  14. When I act as Jane
  15. And I am logged in as the admin
  16. And I open the User settings
  17. And I set the password for user0 to 654321
  18. And I act as John
  19. And I log in with user user0 and password 654321
  20. Then I see that the current page is the Files app
  21. Scenario: try to log in with invalid user
  22. Given I visit the Home page
  23. When I log in with user unknownUser and password 123456acb
  24. Then I see that the current page is the Login page
  25. And I see that a wrong password message is shown
  26. Scenario: log in with invalid user once fixed by admin
  27. Given I act as John
  28. And I can not log in with user unknownUser and password 123456acb
  29. When I act as Jane
  30. And I am logged in as the admin
  31. And I open the User settings
  32. And I click the New user button
  33. And I see that the new user form is shown
  34. And I create user unknownUser with password 123456acb
  35. And I see that the list of users contains the user unknownUser
  36. And I act as John
  37. And I log in with user unknownUser and password 123456acb
  38. Then I see that the current page is the Files app
  39. Scenario: log out
  40. Given I am logged in
  41. When I log out
  42. Then I see that the current page is the Login page