|
|
|
|
|
|
|
|
When I share "farewell.txt" with "user0" |
|
|
When I share "farewell.txt" with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I act as Jane |
|
|
And I act as Jane |
|
|
And I accept the share for "farewell.txt" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
Then I see that the file list contains a file named "farewell.txt" |
|
|
Then I see that the file list contains a file named "farewell.txt" |
|
|
|
|
|
|
|
|
When I share "welcome.txt" with "user0" |
|
|
When I share "welcome.txt" with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I act as Jane |
|
|
And I act as Jane |
|
|
And I accept the share for "welcome.txt" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
Then I see that the file list contains a file named "welcome (2).txt" |
|
|
Then I see that the file list contains a file named "welcome (2).txt" |
|
|
|
|
|
|
|
|
And I see that the "Sharing" tab in the details view is eventually loaded |
|
|
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 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 |
|
|
Scenario: reshare a file with another user |
|
|
Given I act as John |
|
|
Given I act as John |
|
|
And I am logged in as the admin |
|
|
And I am logged in as the admin |
|
|
|
|
|
|
|
|
And I share "farewell.txt" with "user0" |
|
|
And I share "farewell.txt" with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I act as Jane |
|
|
And I act as Jane |
|
|
And I accept the share for "farewell.txt" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
When I share "farewell.txt" with "user1" |
|
|
When I share "farewell.txt" with "user1" |
|
|
And I see that the file is shared with "user1" |
|
|
And I see that the file is shared with "user1" |
|
|
And I act as Jim |
|
|
And I act as Jim |
|
|
And I accept the share for "farewell.txt" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
Then I see that the file list contains a file named "farewell.txt" |
|
|
Then I see that the file list contains a file named "farewell.txt" |
|
|
|
|
|
|
|
|
And I share "farewell.txt" with "user0" |
|
|
And I share "farewell.txt" with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I act as Jane |
|
|
And I act as Jane |
|
|
And I accept the share for "farewell.txt" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
And I share "farewell.txt" with "user1" |
|
|
And I share "farewell.txt" with "user1" |
|
|
|
|
|
|
|
|
When I share "Shared folder" with "user0" |
|
|
When I share "Shared folder" with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I act as Jane |
|
|
And I act as Jane |
|
|
And I accept the share for "Shared folder" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
Then I see that the file list contains a file named "Shared folder" |
|
|
Then I see that the file list contains a file named "Shared folder" |
|
|
|
|
|
|
|
|
And I create a new folder named "Subfolder" |
|
|
And I create a new folder named "Subfolder" |
|
|
And I see that the file list contains a file named "Subfolder" |
|
|
And I see that the file list contains a file named "Subfolder" |
|
|
When I act as Jane |
|
|
When I act as Jane |
|
|
And I accept the share for "Shared folder" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
And I enter in the folder named "Shared folder" |
|
|
And I enter in the folder named "Shared folder" |
|
|
|
|
|
|
|
|
And I share "Shared folder" with "user0" |
|
|
And I share "Shared folder" with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I act as Jane |
|
|
And I act as Jane |
|
|
And I accept the share for "Shared folder" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
And I enter in the folder named "Shared folder" |
|
|
And I enter in the folder named "Shared folder" |
|
|
|
|
|
|
|
|
And I share "Shared folder" with "user0" |
|
|
And I share "Shared folder" with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I act as Jane |
|
|
And I act as Jane |
|
|
And I accept the share for "Shared folder" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
And I share "Shared folder" with "user1" |
|
|
And I share "Shared folder" with "user1" |
|
|
|
|
|
|
|
|
And I create a new folder named "Subfolder" |
|
|
And I create a new folder named "Subfolder" |
|
|
And I see that the file list contains a file named "Subfolder" |
|
|
And I see that the file list contains a file named "Subfolder" |
|
|
When I act as Jim |
|
|
When I act as Jim |
|
|
And I accept the share for "Shared folder" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
And I enter in the folder named "Shared folder" |
|
|
And I enter in the folder named "Shared folder" |
|
|
|
|
|
|
|
|
And I share "Shared folder" with "user0" |
|
|
And I share "Shared folder" with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I see that the file is shared with "user0" |
|
|
And I act as Jane |
|
|
And I act as Jane |
|
|
And I accept the share for "Shared folder" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
And I share "Shared folder" with "user1" |
|
|
And I share "Shared folder" with "user1" |
|
|
And I act as Jim |
|
|
And I act as Jim |
|
|
And I accept the share for "Shared folder" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
And I enter in the folder named "Shared folder" |
|
|
And I enter in the folder named "Shared folder" |
|
|
|
|
|
|
|
|
And I set the share with "user0" as not reshareable |
|
|
And I set the share with "user0" as not reshareable |
|
|
And I see that "user0" can not reshare the share |
|
|
And I see that "user0" can not reshare the share |
|
|
When I act as Jane |
|
|
When I act as Jane |
|
|
And I accept the share for "Shared folder" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
Then I see that the file list contains a file named "Shared folder" |
|
|
Then I see that the file list contains a file named "Shared folder" |
|
|
|
|
|
|
|
|
And I create a new folder named "Subfolder" |
|
|
And I create a new folder named "Subfolder" |
|
|
And I see that the file list contains a file named "Subfolder" |
|
|
And I see that the file list contains a file named "Subfolder" |
|
|
When I act as Jane |
|
|
When I act as Jane |
|
|
And I accept the share for "Shared folder" in the notifications |
|
|
|
|
|
# The Files app is open again to reload the file list |
|
|
# The Files app is open again to reload the file list |
|
|
And I open the Files app |
|
|
And I open the Files app |
|
|
And I enter in the folder named "Shared folder" |
|
|
And I enter in the folder named "Shared folder" |