header.feature 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Feature: header
  2. Scenario: admin users can see admin-level items in the Settings menu
  3. Given I am logged in as the admin
  4. When I open the Settings menu
  5. Then I see that the Settings menu is shown
  6. And I see that the Settings menu has only 5 items
  7. And I see that the "Settings" item in the Settings menu is shown
  8. And I see that the "Apps" item in the Settings menu is shown
  9. And I see that the "Users" item in the Settings menu is shown
  10. And I see that the "Help" item in the Settings menu is shown
  11. And I see that the "Log out" item in the Settings menu is shown
  12. Scenario: normal users can see basic items in the Settings menu
  13. Given I am logged in
  14. When I open the Settings menu
  15. Then I see that the Settings menu is shown
  16. And I see that the Settings menu has only 3 items
  17. And I see that the "Settings" item in the Settings menu is shown
  18. And I see that the "Help" item in the Settings menu is shown
  19. And I see that the "Log out" item in the Settings menu is shown
  20. Scenario: other users are seen in the contacts menu
  21. Given I am logged in as the admin
  22. When I open the Contacts menu
  23. Then I see that the Contacts menu is shown
  24. And I see that the contact "user0" in the Contacts menu is shown
  25. And I see that the contact "admin" in the Contacts menu is not shown
  26. Scenario: just added users are seen in the contacts menu
  27. Given I am logged in as the admin
  28. And I open the User settings
  29. And I click the New user button
  30. And I see that the new user form is shown
  31. And I create user user1 with password 123456acb
  32. And I see that the list of users contains the user user1
  33. When I open the Contacts menu
  34. Then I see that the Contacts menu is shown
  35. And I see that the contact "user0" in the Contacts menu is shown
  36. And I see that the contact "user1" in the Contacts menu is shown
  37. And I see that the contact "admin" in the Contacts menu is not shown
  38. Scenario: search for other users in the contacts menu
  39. Given I am logged in as the admin
  40. And I open the User settings
  41. And I click the New user button
  42. And I see that the new user form is shown
  43. And I create user user1 with password 123456acb
  44. And I see that the list of users contains the user user1
  45. And I open the Contacts menu
  46. And I see that the Contacts menu is shown
  47. And I see that the contact "user0" in the Contacts menu is shown
  48. And I see that the contact "user1" in the Contacts menu is shown
  49. And I see that the Contacts menu search input is shown
  50. When I search for the user "user0"
  51. # First check that "user1" is no longer shown to ensure that the search was
  52. # made; checking that "user0" is shown or that "admin" is not shown does not
  53. # guarantee that (as they were already being shown and not being shown,
  54. # respectively, before the search started).
  55. Then I see that the contact "user1" in the Contacts menu is eventually not shown
  56. And I see that the contact "user0" in the Contacts menu is shown
  57. And I see that the contact "admin" in the Contacts menu is not shown
  58. Scenario: search for unknown users in the contacts menu
  59. Given I am logged in as the admin
  60. And I open the Contacts menu
  61. And I see that the Contacts menu is shown
  62. And I see that the contact "user0" in the Contacts menu is shown
  63. And I see that the Contacts menu search input is shown
  64. When I search for the user "unknownuser"
  65. Then I see that the no results message in the Contacts menu is shown
  66. And I see that the contact "user0" in the Contacts menu is not shown
  67. And I see that the contact "admin" in the Contacts menu is not shown