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.

header.feature 4.2KB

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