You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

login.feature 2.1KB

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