123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- 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 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: 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
|