users.feature 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @apache
  2. Feature: users
  3. Scenario: assign user to a group
  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 see that the list of users contains the user user0
  8. # When I toggle the edit mode for the user user0
  9. # Then I see that the edit mode is on for user user0
  10. # disabled because we need the TAB patch:
  11. # https://github.com/minkphp/MinkSelenium2Driver/pull/244
  12. # When I assign the user user0 to the group admin
  13. # Then I see that the section Admins is shown
  14. # And I see that the section Admins has a count of 2
  15. Scenario: create and delete a group
  16. Given I act as Jane
  17. And I am logged in as the admin
  18. And I open the User settings
  19. # And I see that the list of users contains the user user0
  20. # disabled because we need the TAB patch:
  21. # https://github.com/minkphp/MinkSelenium2Driver/pull/244
  22. # And I assign the user user0 to the group Group1
  23. # And I see that the section Group1 is shown
  24. # And I click the "icon-delete" button on the Group1 section
  25. # And I see that the confirmation dialog is shown
  26. # When I click the "Yes" button of the confirmation dialog
  27. # Then I see that the section Group1 is not shown
  28. Scenario: delete an empty group
  29. Given I act as Jane
  30. And I am logged in as the admin
  31. And I open the User settings
  32. # disabled because we need the TAB patch:
  33. # https://github.com/minkphp/MinkSelenium2Driver/pull/244
  34. # And I assign the user user0 to the group Group1
  35. # And I see that the section Group1 is shown
  36. # And I withdraw the user user0 from the group Group1
  37. # And I see that the section Group1 does not have a count
  38. # And I click the "icon-delete" button on the Group1 section
  39. # And I see that the confirmation dialog is shown
  40. # When I click the "Yes" button of the confirmation dialog
  41. # Then I see that the section Group1 is not shown
  42. # Scenario: change email
  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 see that the list of users contains the user user0
  47. # And I see that the mailAddress of user0 is ""
  48. # When I set the mailAddress for user0 to "test@nextcloud.com"
  49. # And I see that the mailAddress cell for user user0 is done loading
  50. # Then I see that the mailAddress of user0 is "test@nextcloud.com"
  51. Scenario: change user quota
  52. Given I act as Jane
  53. And I am logged in as the admin
  54. And I open the User settings
  55. # And I see that the list of users contains the user user0
  56. # When I toggle the edit mode for the user user0
  57. # Then I see that the edit mode is on for user user0
  58. # And I see that the user quota of user0 is Unlimited
  59. # disabled because we need the TAB patch:
  60. # https://github.com/minkphp/MinkSelenium2Driver/pull/244
  61. # When I set the user user0 quota to 1GB
  62. # And I see that the quota cell for user user0 is done loading
  63. # Then I see that the user quota of user0 is "1 GB"
  64. # When I set the user user0 quota to Unlimited
  65. # And I see that the quota cell for user user0 is done loading
  66. # Then I see that the user quota of user0 is Unlimited
  67. # When I set the user user0 quota to 0
  68. # And I see that the quota cell for user user0 is done loading
  69. # Then I see that the user quota of user0 is "0 B"
  70. # When I set the user user0 quota to Default
  71. # And I see that the quota cell for user user0 is done loading
  72. # Then I see that the user quota of user0 is "Default quota"