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

[test-only] rewriting tests. share with custom permissions #10499

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
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: 0 additions & 14 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,6 @@ config = {
],
"oCISSharingPerm1": [
"webUISharingPermissionsUsers",
"webUISharingFolderPermissionsGroups",
],
"oCISSharingPerm2": [
"webUISharingFilePermissionsGroups",
"webUISharingFilePermissionMultipleUsers",
"webUISharingFolderPermissionMultipleUsers",
"webUISharingFolderAdvancedPermissionMultipleUsers",
"webUISharingFolderAdvancedPermissionsGroups",
],
"oCISSharingPublic1": [
"webUISharingPublicBasic",
Expand Down Expand Up @@ -197,12 +189,6 @@ basicTestSuites = [
"webUIRenameFolders",
"webUISharingAcceptShares",
"webUISharingAutocompletion",
"webUISharingFilePermissionMultipleUsers",
"webUISharingFilePermissionsGroups",
"webUISharingFolderAdvancedPermissionMultipleUsers",
"webUISharingFolderAdvancedPermissionsGroups",
"webUISharingFolderPermissionMultipleUsers",
"webUISharingFolderPermissionsGroups",
"webUISharingInternalGroups",
"webUISharingInternalGroupsEdgeCases",
"webUISharingInternalGroupsSharingIndicator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Other free text and markdown formatting can be used elsewhere in the document if

### [PROPFIND to sub-folder of a shared resources with same name gives 404](https://github.com/owncloud/ocis/issues/3859)

- [webUISharingAcceptShares/acceptShares.feature:73](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature#L73)
- [webUISharingAcceptShares/acceptShares.feature:16](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature#L16)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test will be rewritten and deleted here: #10488

Original file line number Diff line number Diff line change
Expand Up @@ -12,63 +12,6 @@ Feature: accept/decline shares coming from internal users
And user "Brian" has logged in using the webUI


Scenario: User receives files when auto accept share is disabled - oCIS behavior
Given user "Alice" has created file "toshare.txt" in the server
And user "Alice" has uploaded file with content "test" to "toshare.txt" in the server
And user "Alice" has shared file "toshare.txt" with user "Brian" in the server
When the user browses to the shared-with-me page
Then file "toshare.txt" shared by "Alice Hansen" should be in "Accepted" state on the webUI
When the user browses to the files page
Then file "toshare.txt" should not be listed on the webUI
And folder "Shares" should not be listed on the webUI


Scenario: receive shares with same name from different users
Given user "Carol" has been created with default attributes and without skeleton files in the server
And user "Carol" has created file "lorem.txt" in the server
And user "Alice" has created file "lorem.txt" in the server
And user "Carol" has shared file "lorem.txt" with user "Brian" in the server
And user "Alice" has shared file "lorem.txt" with user "Brian" in the server
When the user browses to the shared-with-me page
Then file "lorem (1).txt" shared by "Alice Hansen" should be in "Accepted" state on the webUI
And file "lorem.txt" shared by "Carol King" should be in "Accepted" state on the webUI

@ocisSmokeTest
Scenario: decline an offered (pending) share
Given user "Alice" has created file "toshare.txt" in the server
And user "Alice" has created file "anotherfile.txt" in the server
And user "Alice" has uploaded file with content "test" to "toshare.txt" in the server
And user "Alice" has uploaded file with content "test" to "anotherfile.txt" in the server
And user "Alice" has shared file "toshare.txt" with user "Brian" in the server
And user "Alice" has shared file "anotherfile.txt" with user "Brian" in the server
When the user browses to the shared-with-me page in accepted shares view
And the user declines share "toshare.txt" offered by user "Alice Hansen" using the webUI
And the user browses to the shared-with-me page in declined shares view
Then file "toshare.txt" shared by "Alice Hansen" should be in "Declined" state on the webUI
And file "anotherfile.txt" shared by "Alice Hansen" should be in "Accepted" state on the webUI
When the user browses to the files page
Then file "toshare.txt" should not be listed on the webUI
And file "anotherfile.txt" should not be listed on the webUI

@issue-3101 @issue-4102
Scenario: Decline multiple accepted shares at once from shared with me page
Given user "Alice" has created file "lorem.txt" in the server
And user "Alice" has created file "data.zip" in the server
And user "Alice" has created folder "simple-folder" in the server
And user "Alice" has shared folder "simple-folder" with user "Brian" in the server
And user "Alice" has shared file "lorem.txt" with user "Brian" in the server
And user "Alice" has shared file "data.zip" with user "Brian" in the server
When the user browses to the shared-with-me page in accepted shares view
And the user batch declines these shares using the webUI
| name |
| data.zip |
| lorem.txt |
| simple-folder |
And the user browses to the shared-with-me page in declined shares view
Then file "data.zip" shared by "Alice Hansen" should be in "Declined" state on the webUI
And file "lorem.txt" shared by "Alice Hansen" should be in "Declined" state on the webUI
And folder "simple-folder" shared by "Alice Hansen" should be in "Declined" state on the webUI

@issue-3859
Scenario: receive shares with same name from different users, accept one by one
Given user "Carol" has been created with default attributes and without skeleton files in the server
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading