1
0

users.feature 7.2 KB

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