Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests-only]Add sharing test #9282

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions test/gui/tst_sharing/test.feature
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,17 @@ Feature: Sharing
| edit | read, share | read, share |
| share | read, update, create, delete | read,update |
| edit,share | read | read |


Scenario: sharee deletes a file shared by sharer
Given the setting "shareapi_auto_accept_share" on the server of app "core" has been set to "yes"
And the administrator on the server has set the default folder for received shares to "Shares"
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "textfile.txt" on the server
And user "Brian" has been created on the server with default attributes and without skeleton files
And user "Alice" has shared file "textfile.txt" on the server with user "Brian" with "all" permissions
And user "Brian" has set up a client with default settings
When the user waits for file "Shares/textfile.txt" to be synced
And the user deletes the file "Shares/textfile.txt"
And the user waits for the files to sync
saw-jan marked this conversation as resolved.
Show resolved Hide resolved
Then as "Brian" file "Shares/textfile0.txt" on the server should not exist
And as "Alice" file "textfile0.txt" on the server should not exist