123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485 |
- Feature: app-files-sharing
- Scenario: share a file with another user
- Given I act as John
- And I am logged in as the admin
- And I act as Jane
- And I am logged in
- And I act as John
- And I rename "welcome.txt" to "farewell.txt"
- And I see that the file list contains a file named "farewell.txt"
- When I share "farewell.txt" with "user0"
- And I see that the file is shared with "user0"
- And I act as Jane
- # The Files app is open again to reload the file list
- And I open the Files app
- Then I see that the file list contains a file named "farewell.txt"
- And I open the details view for "farewell.txt"
- And I see that the details view is open
- And I open the "Sharing" tab in the details view
- And I see that the "Sharing" tab in the details view is eventually loaded
- And I see that the file is shared with me by "admin"
- # Scenario: share a file with another user that needs to accept shares
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I visit the settings page
- # And I open the "Sharing" section
- # And I disable accepting the shares by default
- # And I see that shares are not accepted by default
- # And I act as John
- # And I rename "welcome.txt" to "farewell.txt"
- # And I see that the file list contains a file named "farewell.txt"
- # When I share "farewell.txt" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # And I open the Files app
- # And I see that the file list does not contain a file named "farewell.txt"
- # And I accept the share for "/farewell.txt" in the notifications
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # Then I see that the file list contains a file named "farewell.txt"
- # And I open the details view for "farewell.txt"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that the file is shared with me by "admin"
- #
- # Scenario: share a file with another user who already has a file with that name
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # When I share "welcome.txt" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # Then I see that the file list contains a file named "welcome (2).txt"
- # And I open the details view for "welcome (2).txt"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that the file is shared with me by "admin"
- #
- # Scenario: share a skeleton file with another user before first login
- # # If a file is shared with a user before her first login the skeleton would
- # # not have been created, so if the shared file has the same name as one from
- # # the skeleton the shared file will take its place and the skeleton file
- # # will not be added.
- # Given I act as John
- # And I am logged in as the admin
- # When I share "welcome.txt" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # And I am logged in
- # Then I see that the file list contains a file named "welcome.txt"
- # And I open the details view for "welcome.txt"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that the file is shared with me by "admin"
- #
- # Scenario: reshare a file with another user
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as Jim
- # And I am logged in as "user1"
- # And I act as John
- # And I rename "welcome.txt" to "farewell.txt"
- # And I see that the file list contains a file named "farewell.txt"
- # And I share "farewell.txt" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # When I share "farewell.txt" with "user1"
- # And I see that the file is shared with "user1"
- # And I act as Jim
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # Then I see that the file list contains a file named "farewell.txt"
- # And I open the details view for "farewell.txt"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that the file is shared with me by "user0"
- #
- # Scenario: owner sees reshares with other users
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I rename "welcome.txt" to "farewell.txt"
- # And I see that the file list contains a file named "farewell.txt"
- # And I share "farewell.txt" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I share "farewell.txt" with "user1"
- # And I see that the file is shared with "user1"
- # When I act as John
- # # The Files app is open again to reload the file list and the shares
- # And I open the Files app
- # And I open the details view for "farewell.txt"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # Then I see that the file is shared with "user0"
- # And I see that the file is shared with "user1"
- #
- # Scenario: share an empty folder with another user
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # When I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # Then I see that the file list contains a file named "Shared folder"
- # And I open the details view for "Shared folder"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that the file is shared with me by "admin"
- #
- # Scenario: sharee sees a folder created by the owner in a shared folder
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I enter in the folder named "Shared folder"
- # And I create a new folder named "Subfolder"
- # And I see that the file list contains a file named "Subfolder"
- # When I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I enter in the folder named "Shared folder"
- # Then I see that the file list contains a file named "Subfolder"
- #
- # Scenario: owner sees a folder created by the sharee in a shared folder
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I enter in the folder named "Shared folder"
- # And I create a new folder named "Subfolder"
- # And I see that the file list contains a file named "Subfolder"
- # When I act as John
- # And I enter in the folder named "Shared folder"
- # Then I see that the file list contains a file named "Subfolder"
- #
- # Scenario: resharee sees a folder created by the owner in a shared folder
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as Jim
- # And I am logged in as "user1"
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I share "Shared folder" with "user1"
- # And I act as John
- # And I enter in the folder named "Shared folder"
- # And I create a new folder named "Subfolder"
- # And I see that the file list contains a file named "Subfolder"
- # When I act as Jim
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I enter in the folder named "Shared folder"
- # Then I see that the file list contains a file named "Subfolder"
- #
- # Scenario: owner sees a folder created by the resharee in a shared folder
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as Jim
- # And I am logged in as "user1"
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I share "Shared folder" with "user1"
- # And I act as Jim
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I enter in the folder named "Shared folder"
- # And I create a new folder named "Subfolder"
- # And I see that the file list contains a file named "Subfolder"
- # When I act as John
- # And I enter in the folder named "Shared folder"
- # Then I see that the file list contains a file named "Subfolder"
- #
- # Scenario: sharer does not see resharing option for a folder if resharing is disabled in the settings after the share is created
- # Given I am logged in as the admin
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # When I visit the admin settings page
- # And I open the "Sharing" section of the "Administration" group
- # And I disable resharing
- # And I see that resharing is disabled
- # Then I open the Files app
- # And I open the details view for "Shared folder"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that resharing for "user0" is not available
- #
- # Scenario: sharee can not reshare a folder if resharing is disabled in the settings after the share is created
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I visit the admin settings page
- # And I open the "Sharing" section of the "Administration" group
- # And I disable resharing
- # And I see that resharing is disabled
- # When I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # Then I see that the file list contains a file named "Shared folder"
- # And I open the details view for "Shared folder"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that the file is shared with me by "admin"
- # And I see that resharing the file is not allowed
- #
- # Scenario: sharee can unshare a folder if resharing is disabled in the settings after the share is created
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I share "Shared folder" with "user1"
- # And I act as John
- # And I visit the admin settings page
- # And I open the "Sharing" section of the "Administration" group
- # And I disable resharing
- # And I see that resharing is disabled
- # When I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # Then I see that the file list contains a file named "Shared folder"
- # And I open the details view for "Shared folder"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that the file is shared with me by "admin"
- # And I unshare the share with "user1"
- # And I see that the file is not shared with "user1"
- #
- # Scenario: resharee sees a folder created by the owner in a shared folder if resharing is disabled in the settings after the share is created
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as Jim
- # And I am logged in as "user1"
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I share "Shared folder" with "user1"
- # And I act as John
- # And I visit the admin settings page
- # And I open the "Sharing" section of the "Administration" group
- # And I disable resharing
- # And I see that resharing is disabled
- # And I open the Files app
- # And I enter in the folder named "Shared folder"
- # And I create a new folder named "Subfolder"
- # And I see that the file list contains a file named "Subfolder"
- # When I act as Jim
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I enter in the folder named "Shared folder"
- # Then I see that the file list contains a file named "Subfolder"
- #
- # Scenario: sharee can not reshare a folder if the sharer disables it
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I set the share with "user0" as not reshareable
- # And I see that "user0" can not reshare the share
- # When I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # Then I see that the file list contains a file named "Shared folder"
- # And I open the details view for "Shared folder"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that the file is shared with me by "admin"
- # And I see that resharing the file is not allowed
- #
- # Scenario: sharee can not reshare a subfolder if the sharer disables it for the parent folder
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I set the share with "user0" as not reshareable
- # And I see that "user0" can not reshare the share
- # And I enter in the folder named "Shared folder"
- # And I create a new folder named "Subfolder"
- # And I see that the file list contains a file named "Subfolder"
- # When I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I enter in the folder named "Shared folder"
- # Then I see that the file list contains a file named "Subfolder"
- # And I open the details view for "Subfolder"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I see that resharing the file is not allowed
- #
- # Scenario: sharee can not reshare a file with edit permission if the sharer disables it
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I rename "welcome.txt" to "farewell.txt"
- # And I see that the file list contains a file named "farewell.txt"
- # And I share "farewell.txt" with "user0"
- # And I see that the file is shared with "user0"
- # And I set the share with "user0" as not editable
- # And I see that "user0" can not edit the share
- # When I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I share "farewell.txt" with "user1"
- # Then I see that the file is shared with "user1"
- # And I see that "user1" can not edit the share
- # And I see that "user1" can not be allowed to edit the share
- # TODO: disabled unreliable test
- # Scenario: sharee can not reshare a folder with create permission if the sharer disables it
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I set the share with "user0" as not creatable
- # And I see that "user0" can not create in the share
- # When I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I share "Shared folder" with "user1"
- # Then I see that the file is shared with "user1"
- # And I see that "user1" can not create in the share
- # And I see that "user1" can not be allowed to create in the share
- # TODO: disabled unreliable test
- # Scenario: sharee can revoke create permission from reshare after the sharer disabled it
- # Given I act as John
- # And I am logged in as the admin
- # And I act as Jane
- # And I am logged in
- # And I act as Jim
- # And I am logged in as "user1"
- # And I act as John
- # And I create a new folder named "Shared folder"
- # And I see that the file list contains a file named "Shared folder"
- # And I share "Shared folder" with "user0"
- # And I see that the file is shared with "user0"
- # And I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I share "Shared folder" with "user1"
- # And I see that the file is shared with "user1"
- # And I act as John
- # And I set the share with "user0" as not creatable
- # And I see that "user0" can not create in the share
- # And I act as Jim
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I enter in the folder named "Shared folder"
- # # Creation is still allowed in already created reshares
- # And I create a new folder named "Subfolder"
- # And I see that the file list contains a file named "Subfolder"
- # When I act as Jane
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I open the details view for "Shared folder"
- # And I see that the details view is open
- # And I open the "Sharing" tab in the details view
- # And I see that the "Sharing" tab in the details view is eventually loaded
- # And I set the share with "user1" as not creatable
- # Then I see that "user1" can not create in the share
- # And I see that "user1" can not be allowed to create in the share
- # And I act as Jim
- # # The Files app is open again to reload the file list
- # And I open the Files app
- # And I enter in the folder named "Shared folder"
- # And I see that it is not possible to create new files
|