header.feature 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @apache
  2. Feature: header
  3. Scenario: admin users can see admin-level items in the Settings menu
  4. Given I am logged in as the admin
  5. When I open the Settings menu
  6. Then I see that the Settings menu is shown
  7. And I see that the Settings menu has only 9 items
  8. And I see that the "Set status" item in the Settings menu is shown
  9. And I see that the "Appearance and accessibility" item in the Settings menu is shown
  10. And I see that the "Personal settings" item in the Settings menu is shown
  11. And I see that the "Administration settings" item in the Settings menu is shown
  12. And I see that the "Apps" item in the Settings menu is shown
  13. And I see that the "Users" item in the Settings menu is shown
  14. And I see that the "Help" item in the Settings menu is shown
  15. And I see that the "Log out" item in the Settings menu is shown
  16. Scenario: normal users can see basic items in the Settings menu
  17. Given I am logged in
  18. When I open the Settings menu
  19. Then I see that the Settings menu is shown
  20. And I see that the Settings menu has only 6 items
  21. And I see that the "Set status" item in the Settings menu is shown
  22. And I see that the "Appearance and accessibility" item in the Settings menu is shown
  23. And I see that the "Settings" item in the Settings menu is shown
  24. And I see that the "Help" item in the Settings menu is shown
  25. And I see that the "Log out" item in the Settings menu is shown
  26. Scenario: other users are seen in the contacts menu
  27. Given I am logged in as the admin
  28. When I open the Contacts menu
  29. Then I see that the Contacts menu is shown
  30. And I see that the contact "user0" in the Contacts menu is shown
  31. And I see that the contact "admin" in the Contacts menu is not shown
  32. Scenario: users from other groups are not seen in the contacts menu when autocompletion is restricted within the same group
  33. Given I am logged in as the admin
  34. And I visit the admin settings page
  35. And I open the "Sharing" section of the "Administration" group
  36. And I enable restricting username autocompletion to groups
  37. And I see that username autocompletion is restricted to groups
  38. When I open the Contacts menu
  39. Then I see that the Contacts menu is shown
  40. And I see that the contact "user0" in the Contacts menu is not shown
  41. And I see that the contact "admin" in the Contacts menu is not shown
  42. Scenario: just added users are seen in the contacts menu
  43. Given I am logged in as the admin
  44. And I open the User settings
  45. And I click the New user button
  46. And I see that the new user form is shown
  47. And I create user user2 with password 123456acb
  48. And I see that the list of users contains the user user2
  49. When I open the Contacts menu
  50. Then 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 contact "user1" in the Contacts menu is shown
  53. And I see that the contact "user2" in the Contacts menu is shown
  54. And I see that the contact "admin" in the Contacts menu is not shown
  55. Scenario: search for other users in the contacts menu
  56. Given I am logged in as the admin
  57. And I open the Contacts menu
  58. And I see that the Contacts menu is shown
  59. And I see that the contact "user0" in the Contacts menu is shown
  60. And I see that the contact "user1" in the Contacts menu is shown
  61. And I see that the Contacts menu search input is shown
  62. When I search for the user "user0"
  63. # First check that "user1" is no longer shown to ensure that the search was
  64. # made; checking that "user0" is shown or that "admin" is not shown does not
  65. # guarantee that (as they were already being shown and not being shown,
  66. # respectively, before the search started).
  67. Then I see that the contact "user1" in the Contacts menu is eventually not shown
  68. And I see that the contact "user0" in the Contacts menu is shown
  69. And I see that the contact "admin" in the Contacts menu is not shown
  70. Scenario: search for unknown users in the contacts menu
  71. Given I am logged in as the admin
  72. And I open the Contacts menu
  73. And I see that the Contacts menu is shown
  74. And I see that the contact "user0" in the Contacts menu is shown
  75. And I see that the Contacts menu search input is shown
  76. When I search for the user "unknownuser"
  77. Then I see that the no results message in the Contacts menu is shown
  78. And I see that the contact "user0" in the Contacts menu is not shown
  79. And I see that the contact "admin" in the Contacts menu is not shown