1
0

users.feature 7.6 KB

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