header.feature 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @apache
  2. Feature: header
  3. Scenario: other users are seen in the contacts menu
  4. Given I am logged in as the admin
  5. When I open the Contacts menu
  6. Then I see that the Contacts menu is shown
  7. And I see that the contact "user0" in the Contacts menu is shown
  8. And I see that the contact "admin" in the Contacts menu is not shown
  9. # Scenario: users from other groups are not seen in the contacts menu when autocompletion is restricted within the same group
  10. # Given I am logged in as the admin
  11. # And I visit the admin settings page
  12. # And I open the "Sharing" section of the "Administration" group
  13. # And I enable restricting username autocompletion to groups
  14. # And I see that username autocompletion is restricted to groups
  15. # When I open the Contacts menu
  16. # Then I see that the Contacts menu is shown
  17. # And I see that the contact "user0" in the Contacts menu is not shown
  18. # And I see that the contact "admin" in the Contacts menu is not shown
  19. Scenario: just added users are seen in the contacts menu
  20. Given I am logged in as the admin
  21. And I open the User settings
  22. And I click the New user button
  23. And I see that the new user form is shown
  24. And I create user user2 with password 123456acb
  25. # And I see that the list of users contains the user user2
  26. When I open the Contacts menu
  27. Then I see that the Contacts menu is shown
  28. And I see that the contact "user0" in the Contacts menu is shown
  29. And I see that the contact "user1" in the Contacts menu is shown
  30. And I see that the contact "user2" in the Contacts menu is shown
  31. And I see that the contact "admin" in the Contacts menu is not shown
  32. Scenario: search for other users in the contacts menu
  33. Given I am logged in as the admin
  34. And I open the Contacts menu
  35. And I see that the Contacts menu is shown
  36. And I see that the contact "user0" in the Contacts menu is shown
  37. And I see that the contact "user1" in the Contacts menu is shown
  38. And I see that the Contacts menu search input is shown
  39. When I search for the user "user0"
  40. # First check that "user1" is no longer shown to ensure that the search was
  41. # made; checking that "user0" is shown or that "admin" is not shown does not
  42. # guarantee that (as they were already being shown and not being shown,
  43. # respectively, before the search started).
  44. Then I see that the contact "user1" in the Contacts menu is eventually not shown
  45. And I see that the contact "user0" in the Contacts menu is shown
  46. And I see that the contact "admin" in the Contacts menu is not shown
  47. Scenario: search for unknown users in the contacts menu
  48. Given I am logged in as the admin
  49. And I open the Contacts menu
  50. And I see that the Contacts menu is shown
  51. And I see that the contact "user0" in the Contacts menu is shown
  52. And I see that the Contacts menu search input is shown
  53. When I search for the user "unknownuser"
  54. Then I see that the no results message in the Contacts menu is shown
  55. And I see that the contact "user0" in the Contacts menu is not shown
  56. And I see that the contact "admin" in the Contacts menu is not shown