Skip to content

Commit

Permalink
Merge pull request #10543 from owncloud/port#10531
Browse files Browse the repository at this point in the history
[test-only]changed sharing test (#10531)
  • Loading branch information
phil-davis authored Mar 6, 2024
2 parents ebb0a53 + 5bac862 commit 72b4a72
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 446 deletions.
8 changes: 0 additions & 8 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ config = {
"webUITextEditor",
],
"oCISSharingInternal1": [
"webUISharingInternalGroups",
"webUISharingInternalGroupsEdgeCases",
],
"oCISSharingInternal2": [
Expand All @@ -128,14 +127,10 @@ config = {
"oCISSharingInternal3": [
"webUISharingInternalGroupsSharingIndicator",
"webUISharingInternalUsersSharingIndicator",
"webUISharingInternalUsersShareWithPage",
],
"oCISSharingAutocompletionResharing": [
"webUISharingAutocompletion",
],
"oCISSharingPerm1": [
"webUISharingPermissionsUsers",
],
"oCISSharingPublic1": [
"webUISharingPublicBasic",
],
Expand Down Expand Up @@ -185,13 +180,10 @@ basicTestSuites = [
"webUIRenameFolders",
"webUISharingAcceptShares",
"webUISharingAutocompletion",
"webUISharingInternalGroups",
"webUISharingInternalGroupsEdgeCases",
"webUISharingInternalGroupsSharingIndicator",
"webUISharingInternalUsers",
"webUISharingInternalUsersShareWithPage",
"webUISharingInternalUsersSharingIndicator",
"webUISharingPermissionsUsers",
"webUISharingPublicBasic",
"webUISharingPublicDifferentRoles",
"webUISharingPublicManagement",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,6 @@ Feature: Sharing files and folders with internal users
| Brian |
And user "Brian" has created folder "simple-folder" in the server

@issue-ocis-2260 @disablePreviews
Scenario: user shares the file/folder with multiple internal users and delete the share with one user
Given user "Carol" has been created with default attributes and without skeleton files in the server
And user "Alice" has created file "lorem.txt" in the server
And user "Alice" has logged in using the webUI
And user "Alice" has shared file "lorem.txt" with user "Brian" in the server
And user "Alice" has shared file "lorem.txt" with user "Carol" in the server
When the user opens the share dialog for file "lorem.txt" using the webUI
Then user "Brian Murphy" should be listed as "Can edit" in the collaborators list on the webUI
And user "Carol King" should be listed as "Can edit" in the collaborators list on the webUI
And as "Brian" file "Shares/lorem.txt" should exist in the server
And as "Carol" file "Shares/lorem.txt" should exist in the server
When the user deletes "Brian Murphy" as collaborator for the current file using the webUI
Then user "Brian Murphy" should not be listed in the collaborators list on the webUI
And user "Carol King" should be listed as "Can edit" in the collaborators list on the webUI
And file "lorem.txt" should be listed in shared-with-others page on the webUI
And as "Brian" file "Shares/lorem.txt" should not exist in the server
But as "Carol" file "Shares/lorem.txt" should exist in the server

@disablePreviews
Scenario: Try to share file and folder that used to exist but does not anymore
Given user "Alice" has created folder "simple-folder" in the server
And user "Alice" has created file "lorem.txt" in the server
And user "Alice" has logged in using the webUI
And the following files have been deleted by user "Alice" in the server
| name |
| lorem.txt |
| simple-folder |
When the user shares file "lorem.txt" with user "Brian Murphy" as "Editor" using the webUI
Then the "error" message with header 'Failed to add share for "Brian Murphy"' should be displayed on the webUI
And the user clears all error message from the webUI
And user "Brian Murphy" should not be listed in the collaborators list on the webUI
When the user clears all error message from the webUI
And the user shares folder "simple-folder" with user "Brian Murphy" as "Editor" using the webUI
Then the "error" message with header 'Failed to add share for "Brian Murphy"' should be displayed on the webUI
And the user clears all error message from the webUI
And user "Brian Murphy" should not be listed in the collaborators list on the webUI
When the user reloads the current page of the webUI
Then file "lorem.txt" should not be listed on the webUI
And folder "simple-folder" should not be listed on the webUI
And as "Alice" file "lorem.txt" should not exist in the server
And as "Alice" folder "simple-folder" should not exist in the server

@issue-2897 @issue-ocis-2260 @disablePreviews
Scenario: sharing details of items inside a shared folder ("via" info)
Given user "Alice" has created folder "simple-folder" in the server
Expand All @@ -68,24 +25,3 @@ Feature: Sharing files and folders with internal users
When the user opens the details dialog for file "lorem.txt" using the webUI
Then the shared-via path in the details dialog should be "/simple-folder"

@issue-4192 @disablePreviews
Scenario: sharing file after renaming it is possible
Given user "Alice" has created file "lorem.txt" in the server
And user "Alice" has logged in using the webUI
And user "Alice" has uploaded file with content "test" to "lorem.txt" in the server
And the user has renamed file "lorem.txt" to "new-lorem.txt"
When the user shares resource "new-lorem.txt" with user "Brian Murphy" using the quick action on the webUI
Then user "Brian Murphy" should be listed as "Can view" in the collaborators list for file "new-lorem.txt" on the webUI


Scenario: user shares the file/folder with another internal user and delete the share with user
Given user "Alice" has created file "lorem.txt" in the server
And user "Alice" has logged in using the webUI
And user "Alice" has shared file "lorem.txt" with user "Brian" in the server
When the user opens the share dialog for file "lorem.txt" using the webUI
Then user "Brian Murphy" should be listed as "Can edit" in the collaborators list on the webUI
And as "Brian" file "Shares/lorem.txt" should exist in the server
When the user deletes "Brian Murphy" as collaborator for the current file using the webUI
Then user "Brian Murphy" should not be listed in the collaborators list on the webUI
And file "lorem.txt" should not be listed in shared-with-others page on the webUI
And as "Brian" file "Shares/lorem.txt" should not exist in the server

This file was deleted.

Loading

0 comments on commit 72b4a72

Please sign in to comment.