Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

header.feature 3.6KB

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