login.feature 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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: try to log in as disabled user
  27. Given I visit the Home page
  28. When I log in with user disabledUser and password 123456acb
  29. Then I see that the current page is the Login page
  30. And I see that the disabled user message is shown
  31. Scenario: log in with invalid user once fixed by admin
  32. Given I act as John
  33. And I can not log in with user unknownUser and password 123456acb
  34. When I act as Jane
  35. And I am logged in as the admin
  36. And I open the User settings
  37. And I click the New user button
  38. And I see that the new user form is shown
  39. And I create user unknownUser with password 123456acb
  40. And I see that the list of users contains the user unknownUser
  41. And I act as John
  42. And I log in with user unknownUser and password 123456acb
  43. Then I see that the current page is the Files app
  44. Scenario: log out
  45. Given I am logged in
  46. When I log out
  47. Then I see that the current page is the Login page