Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. @apache
  2. Feature: users
  3. Scenario: create a new user
  4. Given I act as Jane
  5. And I am logged in as the admin
  6. And I open the User settings
  7. And I click the New user button
  8. And I see that the new user form is shown
  9. When I create user unknownUser with password 123456acb
  10. Then I see that the list of users contains the user unknownUser
  11. Scenario: create a new user with a custom display name
  12. Given I am logged in as the admin
  13. And I open the User settings
  14. When I click the New user button
  15. And I see that the new user form is shown
  16. And I set the user name for the new user to "test"
  17. And I set the display name for the new user to "Test display name"
  18. And I set the password for the new user to "123456acb"
  19. And I create the new user
  20. Then I see that the list of users contains the user "test"
  21. # And I see that the display name for the user "test" is "Test display name"
  22. Scenario: delete a user
  23. Given I act as Jane
  24. And I am logged in as the admin
  25. And I open the User settings
  26. And I see that the list of users contains the user user0
  27. And I open the actions menu for the user user0
  28. And I see that the "Delete user" action in the user0 actions menu is shown
  29. When I click the "Delete user" action in the user0 actions menu
  30. And I click the "Delete user0's account" button of the confirmation dialog
  31. Then I see that the list of users does not contains the user user0
  32. Scenario: disable a user
  33. Given I act as Jane
  34. And I am logged in as the admin
  35. And I open the User settings
  36. And I see that the list of users contains the user user0
  37. And I open the actions menu for the user user0
  38. And I see that the "Disable user" action in the user0 actions menu is shown
  39. When I click the "Disable user" action in the user0 actions menu
  40. Then I see that the list of users does not contains the user user0
  41. When I open the "Disabled users" section
  42. Then I see that the list of users contains the user user0
  43. Scenario: users navigation without disabled users
  44. Given I act as Jane
  45. And I am logged in as the admin
  46. And I open the User settings
  47. And I open the "Disabled users" section
  48. And I see that the list of users contains the user disabledUser
  49. And I open the actions menu for the user disabledUser
  50. And I see that the "Enable user" action in the disabledUser actions menu is shown
  51. When I click the "Enable user" action in the disabledUser actions menu
  52. Then I see that the section "Disabled users" is not shown
  53. # check again after reloading the settings
  54. When I open the User settings
  55. Then I see that the section "Disabled users" is not shown
  56. Scenario: assign user to a group
  57. Given I act as Jane
  58. And I am logged in as the admin
  59. And I open the User settings
  60. And I see that the list of users contains the user user0
  61. When I toggle the edit mode for the user user0
  62. Then I see that the edit mode is on for user user0
  63. # disabled because we need the TAB patch:
  64. # https://github.com/minkphp/MinkSelenium2Driver/pull/244
  65. # When I assign the user user0 to the group admin
  66. # Then I see that the section Admins is shown
  67. # And I see that the section Admins has a count of 2
  68. Scenario: create and delete a group
  69. Given I act as Jane
  70. And I am logged in as the admin
  71. And I open the User settings
  72. And I see that the list of users contains the user user0
  73. # disabled because we need the TAB patch:
  74. # https://github.com/minkphp/MinkSelenium2Driver/pull/244
  75. # And I assign the user user0 to the group Group1
  76. # And I see that the section Group1 is shown
  77. # And I click the "icon-delete" button on the Group1 section
  78. # And I see that the confirmation dialog is shown
  79. # When I click the "Yes" button of the confirmation dialog
  80. # Then I see that the section Group1 is not shown
  81. Scenario: delete an empty group
  82. Given I act as Jane
  83. And I am logged in as the admin
  84. And I open the User settings
  85. # disabled because we need the TAB patch:
  86. # https://github.com/minkphp/MinkSelenium2Driver/pull/244
  87. # And I assign the user user0 to the group Group1
  88. # And I see that the section Group1 is shown
  89. # And I withdraw the user user0 from the group Group1
  90. # And I see that the section Group1 does not have a count
  91. # And I click the "icon-delete" button on the Group1 section
  92. # And I see that the confirmation dialog is shown
  93. # When I click the "Yes" button of the confirmation dialog
  94. # Then I see that the section Group1 is not shown
  95. Scenario: change columns visibility
  96. Given I act as Jane
  97. And I am logged in as the admin
  98. And I open the User settings
  99. And I open the settings
  100. And I see that the settings are opened
  101. When I toggle the showLanguages checkbox in the settings
  102. Then I see that the "Language" column is shown
  103. When I toggle the showLastLogin checkbox in the settings
  104. Then I see that the "Last login" column is shown
  105. When I toggle the showStoragePath checkbox in the settings
  106. Then I see that the "Storage location" column is shown
  107. When I toggle the showUserBackend checkbox in the settings
  108. Then I see that the "User backend" column is shown
  109. # Scenario: change display name
  110. # Given I act as Jane
  111. # And I am logged in as the admin
  112. # And I open the User settings
  113. # And I see that the list of users contains the user user0
  114. # And I see that the displayName of user0 is user0
  115. # When I set the displayName for user0 to user1
  116. # And I see that the displayName cell for user user0 is done loading
  117. # Then I see that the displayName of user0 is user1
  118. Scenario: change password
  119. Given I act as Jane
  120. And I am logged in as the admin
  121. And I open the User settings
  122. And I see that the list of users contains the user user0
  123. When I toggle the edit mode for the user user0
  124. Then I see that the edit mode is on for user user0
  125. And I see that the password of user0 is ""
  126. When I set the password for user0 to 123456
  127. And I see that the password cell for user user0 is done loading
  128. # password input is emptied on change
  129. Then I see that the password of user0 is ""
  130. # Scenario: change email
  131. # Given I act as Jane
  132. # And I am logged in as the admin
  133. # And I open the User settings
  134. # And I see that the list of users contains the user user0
  135. # And I see that the mailAddress of user0 is ""
  136. # When I set the mailAddress for user0 to "test@nextcloud.com"
  137. # And I see that the mailAddress cell for user user0 is done loading
  138. # Then I see that the mailAddress of user0 is "test@nextcloud.com"
  139. Scenario: change user quota
  140. Given I act as Jane
  141. And I am logged in as the admin
  142. And I open the User settings
  143. And I see that the list of users contains the user user0
  144. When I toggle the edit mode for the user user0
  145. Then I see that the edit mode is on for user user0
  146. And I see that the user quota of user0 is Unlimited
  147. # disabled because we need the TAB patch:
  148. # https://github.com/minkphp/MinkSelenium2Driver/pull/244
  149. # When I set the user user0 quota to 1GB
  150. # And I see that the quota cell for user user0 is done loading
  151. # Then I see that the user quota of user0 is "1 GB"
  152. # When I set the user user0 quota to Unlimited
  153. # And I see that the quota cell for user user0 is done loading
  154. # Then I see that the user quota of user0 is Unlimited
  155. # When I set the user user0 quota to 0
  156. # And I see that the quota cell for user user0 is done loading
  157. # Then I see that the user quota of user0 is "0 B"
  158. # When I set the user user0 quota to Default
  159. # And I see that the quota cell for user user0 is done loading
  160. # Then I see that the user quota of user0 is "Default quota"