createUser.feature 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. @administration
  2. Feature: Users management as admin
  3. In order to add users
  4. As an administrator
  5. I need to be able to create new users
  6. Scenario: See the users list link on the admin page
  7. Given I am a platform administrator
  8. And I am on "/main/admin/index.php"
  9. Then I should see "Users list"
  10. Scenario: See the user creation link on the admin page
  11. Given I am a platform administrator
  12. And I am on "/main/admin/index.php"
  13. Then I should see "Add a user"
  14. Scenario: Create a user with only basic info
  15. Given I am a platform administrator
  16. And I am on "/main/admin/user_add.php"
  17. And I fill in the following:
  18. | firstname | Sammy |
  19. | lastname | Marshall |
  20. | email | smarshall@example.com |
  21. | username | smarshall |
  22. | password | smarshall |
  23. And I press "submit"
  24. Then I should see "The user has been added"
  25. Scenario: Search and delete a user
  26. Given I am a platform administrator
  27. And Admin top bar is disabled
  28. And I am on "/main/admin/user_list.php"
  29. And I fill in "keyword" with "smarshall"
  30. And I press "submit"
  31. When I follow "Delete"
  32. And I confirm the popup
  33. Then I should see "The user has been deleted"