From c5063e91e7c8ae2fa5f8bd9f40ec3b7aee8569e8 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Fri, 6 Oct 2023 16:58:56 +0200 Subject: [PATCH] delete accepting share steps from acceptance UI tests --- ...-failures-with-ocis-server-ocis-storage.md | 4 +- .../webUIFilesActionMenu/versions.feature | 1 - .../features/webUIFilesCopy/copy.feature | 2 - .../webUIMoveFilesFolders/moveFiles.feature | 1 - .../accessToSharesFolder.feature | 6 - .../webUIPreview/mediaPreview.feature | 1 - .../webUIResharing1/reshareUsers.feature | 114 ------------------ .../webUIResharing2/reshareUsers.feature | 21 ---- .../disableSharing.feature | 2 - .../restrictReSharing.feature | 3 - .../restrictSharing.feature | 1 - .../acceptShares.feature | 8 -- .../shareFileWithMultipleUsers.feature | 2 - .../sharePermissionsGroup.feature | 2 - ...thMultipleUsersAdvancedPermissions.feature | 2 - .../shareAdvancePermissionsGroup.feature | 2 - .../shareFolderWithMultipleUsers.feature | 2 - .../sharePermissionsGroup.feature | 2 - .../shareWithGroups.feature | 17 --- .../shareWithGroupsEdgeCases.feature | 10 -- .../shareWithGroups.feature | 5 - .../shareWithUsers.feature | 26 ---- .../shareWithUsers.feature | 5 - .../shareWithUsers.feature | 1 - .../shareWithUsers.feature | 12 -- .../shareWithUsers.feature | 67 ---------- .../sharePermissionsUsers.feature | 13 -- .../publicLinkCreate.feature | 14 --- .../trashbinRestore.feature | 1 - 29 files changed, 2 insertions(+), 345 deletions(-) diff --git a/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md b/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md index cbf8b2deb36..fbfd79addc0 100644 --- a/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md +++ b/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md @@ -29,7 +29,7 @@ Other free text and markdown formatting can be used elsewhere in the document if - [webUIFavorites/unfavoriteFile.feature:70](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFavorites/unfavoriteFile.feature#L70) - [webUIFavorites/unfavoriteFile.feature:86](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFavorites/unfavoriteFile.feature#L86) - [webUIFavorites/unfavoriteFile.feature:101](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFavorites/unfavoriteFile.feature#L101) -- [webUIResharing1/reshareUsers.feature:177](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIResharing1/reshareUsers.feature#L177) +- [webUIResharing1/reshareUsers.feature:69](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIResharing1/reshareUsers.feature#L69) ### [when sharer renames the shared resource, sharee get the updated name](https://github.com/owncloud/ocis/issues/2256) - [webUIRenameFiles/renameFiles.feature:227](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIRenameFiles/renameFiles.feature#L227) @@ -108,4 +108,4 @@ Other free text and markdown formatting can be used elsewhere in the document if - [webUIRenameFiles/renameFiles.feature:250](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIRenameFiles/renameFiles.feature#L250) ### [PROPFIND to sub-folder of a shared resources with same name gives 404](https://github.com/owncloud/ocis/issues/3859) -- [webUISharingAcceptShares/acceptShares.feature:240](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature#L240) +- [webUISharingAcceptShares/acceptShares.feature:232](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature#L232) diff --git a/tests/acceptance/features/webUIFilesActionMenu/versions.feature b/tests/acceptance/features/webUIFilesActionMenu/versions.feature index cbbcae76a94..016522824d6 100644 --- a/tests/acceptance/features/webUIFilesActionMenu/versions.feature +++ b/tests/acceptance/features/webUIFilesActionMenu/versions.feature @@ -78,7 +78,6 @@ Feature: Versions of a file And user "Brian" has created folder "simple-folder" in the server And user "Brian" has uploaded file with content "a text file" to "simple-folder/lorem.txt" in the server And user "Brian" has shared folder "simple-folder" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "simple-folder" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And the user has opened folder "Shares" And the user has opened folder "simple-folder" diff --git a/tests/acceptance/features/webUIFilesCopy/copy.feature b/tests/acceptance/features/webUIFilesCopy/copy.feature index 7d21e476b47..f3c472c3ca8 100644 --- a/tests/acceptance/features/webUIFilesCopy/copy.feature +++ b/tests/acceptance/features/webUIFilesCopy/copy.feature @@ -91,7 +91,6 @@ Feature: copy files and folders And user "Brian" has been created with default attributes and without skeleton files in the server And user "Brian" has created folder "simple-folder" in the server And user "Brian" has shared folder "simple-folder" with user "Alice" with "read" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has logged in using the webUI When the user tries to copy file "lorem.txt" into folder "Shares/simple-folder" using the webUI Then as "Alice" file "Shares/simple-folder/lorem.txt" should not exist in the server @@ -103,7 +102,6 @@ Feature: copy files and folders And user "Brian" has been created with default attributes and without skeleton files in the server And user "Brian" has created folder "simple-folder" in the server And user "Brian" has shared folder "simple-folder" with user "Alice" with "read" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has logged in using the webUI When the user tries to copy folder "simple-empty-folder" into folder "Shares/simple-folder" using the webUI Then as "Alice" file "Shares/simple-folder/simple-empty-folder" should not exist in the server diff --git a/tests/acceptance/features/webUIMoveFilesFolders/moveFiles.feature b/tests/acceptance/features/webUIMoveFilesFolders/moveFiles.feature index 903d253f8c5..d2ff6a85aba 100644 --- a/tests/acceptance/features/webUIMoveFilesFolders/moveFiles.feature +++ b/tests/acceptance/features/webUIMoveFilesFolders/moveFiles.feature @@ -109,7 +109,6 @@ Feature: move files And user "Brian" has been created with default attributes and without skeleton files in the server And user "Alice" has uploaded file with content "test content" to "simple-folder/testFile.txt" in the server And user "Alice" has shared folder "/simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Brian" has logged in using the webUI And user "Brian" has created folder "/Shares/testFolder" in the server And the user has opened folder "Shares" diff --git a/tests/acceptance/features/webUIOperationsWithFolderShares/accessToSharesFolder.feature b/tests/acceptance/features/webUIOperationsWithFolderShares/accessToSharesFolder.feature index d969c0e0ae5..7340de0edfe 100644 --- a/tests/acceptance/features/webUIOperationsWithFolderShares/accessToSharesFolder.feature +++ b/tests/acceptance/features/webUIOperationsWithFolderShares/accessToSharesFolder.feature @@ -21,7 +21,6 @@ Feature: Upload into a folder Shares Scenario: the Shares folder exists after accepting the first shared file Given user "Brian" has created file "lorem.txt" in the server And user "Brian" has shared file "lorem.txt" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server When user "Alice" logs in using the webUI Then folder "Shares" should be listed on the webUI @@ -29,7 +28,6 @@ Feature: Upload into a folder Shares Scenario: upload of a file into a folder Shares in oc10 Given user "Brian" has created file "lorem.txt" in the server And user "Brian" has shared file "lorem.txt" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And the user has opened folder "Shares" When the user uploads file "new-lorem.txt" using the webUI @@ -39,7 +37,6 @@ Feature: Upload into a folder Shares Scenario: upload of a folder into a folder Shares in oc 10 Given user "Brian" has created file "lorem.txt" in the server And user "Brian" has shared file "lorem.txt" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And the user has opened folder "Shares" When the user uploads folder "PARENT" using the webUI @@ -51,7 +48,6 @@ Feature: Upload into a folder Shares Given user "Brian" has been created with default attributes and without skeleton files in the server And user "Brian" has created file "lorem.txt" in the server And user "Brian" has shared file "lorem.txt" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And the user has opened folder "Shares" When the user creates a folder with the name "New folder" using the webUI @@ -61,7 +57,6 @@ Feature: Upload into a folder Shares Scenario: move a file or a folder into a folder Shares in oc10 Given user "Brian" has created file "lorem.txt" in the server And user "Brian" has shared file "lorem.txt" with user "Alice" with "read" permissions in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server And user "Alice" has created folder "NewFolder" in the server And user "Alice" has logged in using the webUI When the user moves folder "NewFolder" into folder "Shares" using the webUI @@ -71,7 +66,6 @@ Feature: Upload into a folder Shares Scenario: the user can delete files that they wrote into the folder Shares Given user "Brian" has created file "lorem.txt" in the server And user "Brian" has shared file "lorem.txt" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And user "Alice" has created folder "Shares/NewFolder" in the server And user "Alice" has uploaded file with content "some data" to "Shares/textfile.txt" in the server diff --git a/tests/acceptance/features/webUIPreview/mediaPreview.feature b/tests/acceptance/features/webUIPreview/mediaPreview.feature index bbb7110b218..eb8b1dbb2ff 100644 --- a/tests/acceptance/features/webUIPreview/mediaPreview.feature +++ b/tests/acceptance/features/webUIPreview/mediaPreview.feature @@ -155,7 +155,6 @@ Feature: display image in preview app on the webUI And user "Brian" has been created with default attributes and without skeleton files in the server And user "Brian" has uploaded file "testavatar.jpeg" to "testavatar.jpeg" in the server And user "Brian" has shared file "testavatar.jpeg" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "testavatar.jpeg" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And the user browses to the shared-with-me page When the user views the file "testavatar.jpeg" in the preview app by clicking on the file name using the webUI diff --git a/tests/acceptance/features/webUIResharing1/reshareUsers.feature b/tests/acceptance/features/webUIResharing1/reshareUsers.feature index 5021045405b..e2a6dac3e23 100644 --- a/tests/acceptance/features/webUIResharing1/reshareUsers.feature +++ b/tests/acceptance/features/webUIResharing1/reshareUsers.feature @@ -14,99 +14,13 @@ Feature: Resharing shared files with different permissions | Carol | And user "Brian" has created folder "simple-folder" in the server - # this scenario is skipped on ocis because it opens share folder which in not possible in OCIS - # but it works for OC10 see issue https://github.com/owncloud/web/issues/6896 for more detail - @skipOnOCIS - Scenario: share a folder with another user with share permissions and reshare without share permissions to different user, and check if user is displayed for original sharer - Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server - And user "Alice" has logged in using the webUI - And the user opens folder "Shares" using the webUI - When the user shares folder "simple-folder" with user "Carol King" as "Custom permissions" with permissions "," using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server - And the user re-logs in as "Brian" using the webUI - Then user "Carol King" should be listed as "Custom permissions" in the collaborators list for folder "simple-folder" on the webUI - And no custom permissions should be set for collaborator "Carol King" for folder "simple-folder" on the webUI - And user "Alice Hansen" should be listed as "Can view" in the collaborators list for folder "simple-folder" on the webUI - And user "Alice" should have received a share with these details in the server: - | field | value | - | uid_owner | Brian | - | share_with | Alice | - | file_target | /Shares/simple-folder | - | item_type | folder | - | permissions | read, share | - And user "Carol" should have received a share with these details in the server: - | field | value | - | uid_owner | Alice | - | share_with | Carol | - | file_target | /Shares/simple-folder | - | item_type | folder | - | permissions | read | - - # this scenario is skipped on ocis because it opens share folder which in not possible in OCIS - # but it works for OC10 see issue https://github.com/owncloud/web/issues/6896 for more detail - @skipOnOCIS - Scenario: share a folder with another user with share permissions and reshare without share permissions to different user, and check if user is displayed for the receiver - Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server - And user "Alice" has logged in using the webUI - And the user opens folder "Shares" using the webUI - When the user shares folder "simple-folder" with user "Carol King" as "Viewer" with permissions "," using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server - And user "Carol" should have received a share with these details in the server: - | field | value | - | uid_owner | Alice | - | share_with | Carol | - | file_target | /Shares/simple-folder | - | item_type | folder | - | permissions | read, share | - - @skipOnOCIS - Scenario: share a folder without share permissions and check if another user can reshare - Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server - When user "Alice" logs in using the webUI - And the user opens folder "Shares" using the webUI - Then the user should not be able to share resource "simple-folder" using the webUI - - @skipOnOCIS - Scenario: share a file without share permissions and check if another user can reshare - Given user "Brian" has created file "lorem.txt" in the server - And user "Brian" has shared file "lorem.txt" with user "Alice" with "read" permissions in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server - When user "Alice" logs in using the webUI - And the user opens folder "Shares" using the webUI - Then the user should not be able to share resource "lorem.txt" using the webUI - - @skipOnOCIS - Scenario: share a received folder without share permissions and check if another user can reshare - Given user "Brian" has shared folder "simple-folder" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server - And user "Alice" has shared folder "/Shares/simple-folder" with user "Carol" with "read" permissions in the server - And user "Carol" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server - When user "Carol" logs in using the webUI - And the user opens folder "Shares" using the webUI - Then the user should not be able to share resource "simple-folder" using the webUI - - @skipOnOCIS - Scenario: share a received file without share permissions and check if another user can reshare - Given user "Brian" has created file "lorem.txt" in the server - And user "Brian" has shared file "lorem.txt" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server - And user "Alice" has shared folder "/Shares/lorem.txt" with user "Carol" with "read" permissions in the server - And user "Carol" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server - When user "Carol" logs in using the webUI - And the user opens folder "Shares" using the webUI - Then the user should not be able to share resource "lorem.txt" using the webUI @skipOnOCIS Scenario: User is allowed to reshare a file/folder with the equivalent received permissions, and collaborators should not be listed for the receiver Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share, delete" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And the user opens folder "Shares" using the webUI When the user shares folder "simple-folder" with user "Carol King" as "Custom permissions" with permissions "share, delete" using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server And the user re-logs in as "Carol" using the webUI And the user opens folder "Shares" using the webUI And the collaborators list for folder "simple-folder" should be empty @@ -123,11 +37,9 @@ Feature: Resharing shared files with different permissions @skipOnOCIS Scenario: User is allowed to reshare a file/folder with the lesser permissions, and check if it is listed for original owner Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share, delete" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And the user opens folder "Shares" using the webUI When the user shares folder "simple-folder" with user "Carol King" as "Custom permissions" with permissions "delete" using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server And the user re-logs in as "Brian" using the webUI Then user "Alice Hansen" should be listed as "Custom permissions" in the collaborators list for folder "simple-folder" on the webUI And custom permissions "share, delete" should be set for user "Alice Hansen" for folder "simple-folder" on the webUI @@ -141,35 +53,15 @@ Feature: Resharing shared files with different permissions | item_type | folder | | permissions | delete, read | - @skipOnOCIS - Scenario: Reshare a file and folder from shared with me page - Given user "Brian" has created file "lorem.txt" in the server - And user "Brian" has shared folder "simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server - And user "Brian" has shared file "lorem.txt" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server - And user "Alice" has logged in using the webUI - And the user has browsed to the shared-with-me page - When the user shares folder "simple-folder" with user "Carol King" as "Editor" using the webUI - And the user shares file "lorem.txt" with user "Carol King" as "Editor" using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server - And user "Carol" accepts the share "Shares/lorem.txt" offered by user "Alice" using the sharing API in the server - Then as "Carol" folder "/Shares/simple-folder" should exist in the server - And as "Carol" file "/Shares/lorem.txt" should exist in the server - Scenario: Reshare a file and folder from shared with others page Given user "Brian" has created file "lorem.txt" in the server And user "Brian" has shared folder "simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Brian" has shared file "lorem.txt" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server And user "Brian" has logged in using the webUI And the user has browsed to the shared-with-others page When the user shares folder "simple-folder" with user "Carol King" as "Editor" using the webUI And the user shares file "lorem.txt" with user "Carol King" as "Editor" using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Brian" using the sharing API in the server - And user "Carol" accepts the share "Shares/lorem.txt" offered by user "Brian" using the sharing API in the server Then as "Carol" folder "/Shares/simple-folder" should exist in the server And as "Carol" file "/Shares/lorem.txt" should exist in the server @@ -177,17 +69,13 @@ Feature: Resharing shared files with different permissions Scenario: Reshare a file and folder from favorites page Given user "Brian" has created file "lorem.txt" in the server And user "Brian" has shared folder "simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Brian" has shared file "lorem.txt" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server And user "Alice" has favorited element "/Shares/simple-folder" in the server And user "Alice" has favorited element "/Shares/lorem.txt" in the server And user "Alice" has logged in using the webUI When the user browses to the favorites page using the webUI And the user shares folder "Shares/simple-folder" with user "Carol King" as "Editor" using the webUI And the user shares file "Shares/lorem.txt" with user "Carol King" as "Editor" using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server - And user "Carol" accepts the share "Shares/lorem.txt" offered by user "Alice" using the sharing API in the server Then as "Carol" folder "/Shares/simple-folder" should exist in the server And as "Carol" file "/Shares/lorem.txt" should exist in the server @@ -195,9 +83,7 @@ Feature: Resharing shared files with different permissions Scenario: Resource owner sees resharer in collaborators list Given user "Brian" has created file "lorem.txt" in the server And user "Brian" has shared folder "simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has shared folder "/Shares/simple-folder" with user "Carol" in the server - And user "Carol" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server When user "Brian" has logged in using the webUI And the user opens the share dialog for folder "simple-folder" using the webUI Then user "Alice Hansen" should be listed as "Can edit" in the collaborators list on the webUI diff --git a/tests/acceptance/features/webUIResharing2/reshareUsers.feature b/tests/acceptance/features/webUIResharing2/reshareUsers.feature index d1a553fbbd5..2334b410fd1 100644 --- a/tests/acceptance/features/webUIResharing2/reshareUsers.feature +++ b/tests/acceptance/features/webUIResharing2/reshareUsers.feature @@ -17,9 +17,7 @@ Feature: Resharing shared files with different permissions @issue-ocis-1922 Scenario: Reshare a folder without share permissions using API and check if it is listed on the collaborators list for original owner Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has shared folder "Shares/simple-folder" with user "Carol" with "read" permissions in the server - And user "Carol" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Brian" has logged in using the webUI When the user opens the share dialog for folder "simple-folder" using the webUI Then user "Carol King" should be listed as "Custom permissions" in the collaborators list for folder "simple-folder" on the webUI @@ -30,37 +28,20 @@ Feature: Resharing shared files with different permissions @skipOnOCIS Scenario: Reshare a folder without share permissions using API and check if it is listed on the collaborators list for resharer Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server - And user "Alice" has shared folder "Shares/simple-folder" with user "Carol" with "read" permissions in the server - And user "Carol" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Alice" has logged in using the webUI And the user opens folder "Shares" using the webUI When the user opens the share dialog for folder "simple-folder" using the webUI Then user "Carol King" should be listed as "Custom permissions" in the collaborators list for folder "simple-folder" on the webUI And no custom permissions should be set for collaborator "Carol King" for folder "simple-folder" on the webUI - # this scenario is skipped on ocis because it opens share folder which in not possible in OCIS - # but it works for OC10 see issue https://github.com/owncloud/web/issues/6896 for more detail - @skipOnOCIS - Scenario: Reshare a folder without share permissions using API and check if the receiver can reshare - Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server - And user "Alice" has shared folder "/Shares/simple-folder" with user "Carol" with "read" permissions in the server - And user "Carol" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server - When user "Carol" logs in using the webUI - And the user opens folder "Shares" using the webUI - Then the user should not be able to share folder "simple-folder" using the webUI - # this scenario is skipped on ocis because it opens share folder which in not possible in OCIS # but it works for OC10 see issue https://github.com/owncloud/web/issues/6896 for more detail @skipOnOCIS Scenario Outline: share a received folder with another user with same permissions(including share permissions) and check if the user is displayed in collaborators list for resharer Given user "Brian" has shared folder "simple-folder" with user "Alice" with "" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And the user opens folder "Shares" using the webUI When the user shares folder "simple-folder" with user "Carol King" as "" with permissions "" using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server Then user "Carol King" should be listed as "" in the collaborators list for folder "simple-folder" on the webUI And custom permissions "" should be set for user "Carol King" for folder "simple-folder" on the webUI And user "Carol" should have received a share with these details in the server: @@ -83,11 +64,9 @@ Feature: Resharing shared files with different permissions @skipOnOCIS Scenario Outline: share a received folder with another user with same permissions(including share permissions) and check if the user is displayed in collaborators list for original owner Given user "Brian" has shared folder "simple-folder" with user "Alice" with "" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has logged in using the webUI And the user opens folder "Shares" using the webUI When the user shares folder "simple-folder" with user "Carol King" as "" with permissions "" using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server And the user re-logs in as "Brian" using the webUI Then user "Carol King" should be listed as "" in the collaborators list for folder "simple-folder" on the webUI And custom permissions "" should be set for user "Carol King" for folder "simple-folder" on the webUI diff --git a/tests/acceptance/features/webUIRestrictSharing/disableSharing.feature b/tests/acceptance/features/webUIRestrictSharing/disableSharing.feature index cfbad8f9d32..15df327812e 100644 --- a/tests/acceptance/features/webUIRestrictSharing/disableSharing.feature +++ b/tests/acceptance/features/webUIRestrictSharing/disableSharing.feature @@ -32,9 +32,7 @@ Feature: disable sharing Scenario: Check file presence in shared-with-me page when sharing is disabled Given user "Brian" has been created with default attributes and without skeleton files in the server And user "Alice" has shared file "lorem.txt" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And the setting "shareapi_enabled" of app "core" has been set to "no" in the server When user "Brian" logs in using the webUI And the user opens folder "Shares" using the webUI diff --git a/tests/acceptance/features/webUIRestrictSharing/restrictReSharing.feature b/tests/acceptance/features/webUIRestrictSharing/restrictReSharing.feature index b54d40c3ce9..fb43c9889db 100644 --- a/tests/acceptance/features/webUIRestrictSharing/restrictReSharing.feature +++ b/tests/acceptance/features/webUIRestrictSharing/restrictReSharing.feature @@ -25,7 +25,6 @@ Feature: restrict resharing And user "Brian" has created folder "simple-folder" in the server And user "Brian" has uploaded file "lorem.txt" to "simple-folder/lorem.txt" in the server And user "Brian" has shared folder "simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server When user "Alice" logs in using the webUI And the user browses to the files page And the user opens folder "Shares" using the webUI @@ -40,8 +39,6 @@ Feature: restrict resharing Given the setting "shareapi_allow_resharing" of app "core" has been set to "no" in the server And user "Carol" has uploaded file "lorem.txt" to "lorem.txt" in the server And user "Carol" has shared file "lorem.txt" with group "grp1" in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Carol" in the server - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Carol" in the server When user "Alice" logs in using the webUI And the user opens folder "Shares" using the webUI Then the user should not be able to share file "lorem.txt" using the webUI diff --git a/tests/acceptance/features/webUIRestrictSharing/restrictSharing.feature b/tests/acceptance/features/webUIRestrictSharing/restrictSharing.feature index 9398b67963e..8512df48d17 100644 --- a/tests/acceptance/features/webUIRestrictSharing/restrictSharing.feature +++ b/tests/acceptance/features/webUIRestrictSharing/restrictSharing.feature @@ -47,7 +47,6 @@ Feature: restrict Sharing Scenario: Do not restrict users to only share with groups they are member of Given the setting "shareapi_only_share_with_membership_groups" of app "core" has been set to "no" in the server When the user shares folder "simple-folder" with group "grp2" as "Viewer" using the webUI - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Brian" using the sharing API in the server Then as "Carol" folder "/Shares/simple-folder" should exist in the server @smokeTest diff --git a/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature b/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature index 06ba2cb8724..ebb3be4d5c7 100644 --- a/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature +++ b/tests/acceptance/features/webUISharingAcceptShares/acceptShares.feature @@ -35,7 +35,6 @@ Feature: accept/decline shares coming from internal users And user "Alice" has created folder "/simple-folder" in the server And user "Brian" has been added to group "grp1" in the server And user "Alice" has shared folder "/simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And the user has browsed to the personal page And the user opens folder "Shares" using the webUI When the user shares folder "simple-folder" with group "grp1" as "Viewer" using the webUI @@ -55,8 +54,6 @@ Feature: accept/decline shares coming from internal users And user "Brian" has been added to group "grp1" in the server And user "Alice" has shared folder "/simple-folder" with user "Brian" in the server And user "Alice" has shared file "/testimage.jpg" with group "grp1" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server - And user "Brian" has accepted the share "Shares/testimage.jpg" offered by user "Alice" in the server And the user has browsed to the personal page When the user opens folder "Shares" using the webUI And the user deletes folder "simple-folder" using the webUI @@ -178,9 +175,6 @@ Feature: accept/decline shares coming from internal users 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 - And user "Brian" has accepted the share "Shares/data.zip" offered by user "Alice" in the server - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" 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 | @@ -196,7 +190,6 @@ Feature: accept/decline shares coming from internal users Scenario: shared file status is changed to declined when user deletes the file Given user "Alice" has created file "lorem.txt" in the server And user "Alice" has shared file "lorem.txt" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server And the user has reloaded the current page of the webUI And the user opens folder "Shares" using the webUI When the user deletes file "lorem.txt" using the webUI @@ -207,7 +200,6 @@ Feature: accept/decline shares coming from internal users Scenario: the deleted shared file is restored back to the personal file list when accepted from the shared with me file list Given user "Alice" has created file "lorem.txt" in the server And user "Alice" has shared file "lorem.txt" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server And the following files have been deleted by user "Brian" in the server | name | | Shares/lorem.txt | diff --git a/tests/acceptance/features/webUISharingFilePermissionMultipleUsers/shareFileWithMultipleUsers.feature b/tests/acceptance/features/webUISharingFilePermissionMultipleUsers/shareFileWithMultipleUsers.feature index 840bb3ce3b4..93dffd3b8ec 100644 --- a/tests/acceptance/features/webUISharingFilePermissionMultipleUsers/shareFileWithMultipleUsers.feature +++ b/tests/acceptance/features/webUISharingFilePermissionMultipleUsers/shareFileWithMultipleUsers.feature @@ -22,8 +22,6 @@ Feature: Sharing files with multiple internal users with different permissions | Brian Murphy | user | | Carol King | user | And the user shares with the selected collaborators - And user "Brian" accepts the share "Shares/lorem.txt" offered by user "Alice" using the sharing API in the server - And user "Carol" accepts the share "Shares/lorem.txt" offered by user "Alice" using the sharing API in the server Then custom permissions "" should be set for user "Brian Murphy" for file "lorem.txt" on the webUI And custom permissions "" should be set for user "Carol King" for file "lorem.txt" on the webUI And user "Brian Murphy" should be listed as "" in the collaborators list for file "lorem.txt" on the webUI diff --git a/tests/acceptance/features/webUISharingFilePermissionsGroups/sharePermissionsGroup.feature b/tests/acceptance/features/webUISharingFilePermissionsGroups/sharePermissionsGroup.feature index a479254fdb6..4f791d58622 100644 --- a/tests/acceptance/features/webUISharingFilePermissionsGroups/sharePermissionsGroup.feature +++ b/tests/acceptance/features/webUISharingFilePermissionsGroups/sharePermissionsGroup.feature @@ -29,8 +29,6 @@ Feature: Sharing files with internal groups with permissions | grp1 | group | | grp2 | group | And the user shares with the selected collaborators - And user "Brian" accepts the share "Shares/lorem.txt" offered by user "Alice" using the sharing API in the server - And user "Carol" accepts the share "Shares/lorem.txt" offered by user "Alice" using the sharing API in the server Then custom permissions "" should be set for group "grp2" for file "lorem.txt" on the webUI And custom permissions "" should be set for group "grp1" for file "lorem.txt" on the webUI And group "grp2" should be listed as "" in the collaborators list for file "lorem.txt" on the webUI diff --git a/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature b/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature index 865f28c9135..3d02e572a0c 100644 --- a/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature +++ b/tests/acceptance/features/webUISharingFolderAdvancedPermissionMultipleUsers/sharedFolderWithMultipleUsersAdvancedPermissions.feature @@ -22,8 +22,6 @@ Feature: Sharing folders with multiple internal users using advanced permissions | Brian Murphy | user | | Carol King | user | And the user shares with the selected collaborators - And user "Brian" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server Then custom permissions "" should be set for user "Brian Murphy" for folder "simple-folder" on the webUI And custom permissions "" should be set for user "Carol King" for folder "simple-folder" on the webUI And user "Brian Murphy" should be listed as "" in the collaborators list for folder "simple-folder" on the webUI diff --git a/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature b/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature index 71c74264620..54b29d2312f 100644 --- a/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature +++ b/tests/acceptance/features/webUISharingFolderAdvancedPermissionsGroups/shareAdvancePermissionsGroup.feature @@ -29,8 +29,6 @@ Feature: Sharing folders with internal groups with role as advanced permissions | grp1 | group | | grp2 | group | And the user shares with the selected collaborators - And user "Brian" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server Then custom permissions "" should be set for group "grp2" for folder "simple-folder" on the webUI And custom permissions "" should be set for group "grp1" for folder "simple-folder" on the webUI And group "grp2" should be listed as "" in the collaborators list for folder "simple-folder" on the webUI diff --git a/tests/acceptance/features/webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature b/tests/acceptance/features/webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature index 72527c46ad0..cf1466f4a12 100644 --- a/tests/acceptance/features/webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature +++ b/tests/acceptance/features/webUISharingFolderPermissionMultipleUsers/shareFolderWithMultipleUsers.feature @@ -23,8 +23,6 @@ Feature: Sharing folders with multiple internal users with different permissions | Brian Murphy | user | | Carol King | user | And the user shares with the selected collaborators - And user "Brian" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server Then custom permissions "" should be set for user "Brian Murphy" for folder "simple-folder" on the webUI And custom permissions "" should be set for user "Carol King" for folder "simple-folder" on the webUI And user "Brian Murphy" should be listed as "" in the collaborators list for folder "simple-folder" on the webUI diff --git a/tests/acceptance/features/webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature b/tests/acceptance/features/webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature index 30d28058d2a..1c2828847cb 100644 --- a/tests/acceptance/features/webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature +++ b/tests/acceptance/features/webUISharingFolderPermissionsGroups/sharePermissionsGroup.feature @@ -29,8 +29,6 @@ Feature: Sharing folders with internal groups with different roles and permissio | grp1 | group | | grp2 | group | And the user shares with the selected collaborators - And user "Brian" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server - And user "Carol" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server Then custom permissions "" should be set for group "grp2" for folder "simple-folder" on the webUI And custom permissions "" should be set for group "grp1" for folder "simple-folder" on the webUI And group "grp2" should be listed as "" in the collaborators list for folder "simple-folder" on the webUI diff --git a/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature b/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature index 749f4da2ec5..82470c8fbd7 100644 --- a/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature +++ b/tests/acceptance/features/webUISharingInternalGroups/shareWithGroups.feature @@ -34,10 +34,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has logged in using the webUI When the user shares folder "simple-folder" with group "grp1" as "" using the webUI And the user shares file "testimage.jpg" with group "grp1" as "" using the webUI - And user "Alice" accepts the share "Shares/simple-folder" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/simple-folder" offered by user "Carol" using the sharing API in the server - And user "Alice" accepts the share "Shares/testimage.jpg" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/testimage.jpg" offered by user "Carol" using the sharing API in the server Then group "grp1" should be listed as "" in the collaborators list for folder "simple-folder" on the webUI And group "grp1" should be listed as "" in the collaborators list for file "testimage.jpg" on the webUI And user "Alice" should have received a share with these details in the server: @@ -79,8 +75,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has logged in using the webUI When the user renames file "lorem.txt" to "new-lorem.txt" using the webUI And the user shares file "new-lorem.txt" with group "grp1" as "Editor" using the webUI - And user "Alice" accepts the share "Shares/new-lorem.txt" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/new-lorem.txt" offered by user "Carol" using the sharing API in the server And the user re-logs in as "Alice" using the webUI Then as "Alice" the content of "/Shares/new-lorem.txt" in the server should not be the same as the content of local file "new-lorem.txt" # overwrite the received shared file @@ -104,8 +98,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has logged in using the webUI When the user renames folder "simple-folder" to "new-simple-folder" using the webUI And the user shares folder "new-simple-folder" with group "grp1" as "Editor" using the webUI - And user "Alice" accepts the share "Shares/new-simple-folder" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/new-simple-folder" offered by user "Carol" using the sharing API in the server And the user re-logs in as "Alice" using the webUI And the user opens folder "Shares" using the webUI And the user opens folder "new-simple-folder" using the webUI @@ -141,8 +133,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has logged in using the webUI When the user renames folder "simple-folder" to "new-simple-folder" using the webUI And the user shares folder "new-simple-folder" with group "grp1" as "Editor" using the webUI - And user "Alice" accepts the share "Shares/new-simple-folder" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/new-simple-folder" offered by user "Carol" using the sharing API in the server # unshare the received shared folder and check it is gone And the user re-logs in as "Alice" using the webUI And the user opens folder "Shares" using the webUI @@ -167,7 +157,6 @@ Feature: Sharing files and folders with internal groups 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 group "grp1" in the server - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server When the user opens the share dialog for file "lorem.txt" using the webUI Then group "grp1" should be listed as "Can edit" in the collaborators list on the webUI When the user deletes "grp1" as collaborator for the current file using the webUI @@ -183,9 +172,7 @@ Feature: Sharing files and folders with internal groups And user "Carol" has been added to group "grp2" in the server And user "Alice" has logged in using the webUI And user "Alice" has shared file "lorem.txt" with group "grp1" in the server - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server And user "Alice" has shared file "lorem.txt" with group "grp2" in the server - And user "Carol" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server When the user opens the share dialog for file "lorem.txt" using the webUI Then group "grp1" should be listed as "Can edit" in the collaborators list on the webUI And group "grp2" should be listed as "Can edit" in the collaborators list on the webUI @@ -226,8 +213,6 @@ Feature: Sharing files and folders with internal groups | shareTypeString | group | | shareWith | grp1 | | expireDate | +14 | - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Carol" in the server - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Carol" in the server And user "Carol" has logged in using the webUI When the user edits the collaborator expiry date of "grp1" of file "lorem.txt" to "+7" days using the webUI Then user "Alice" should have received a share with target "Shares/lorem.txt" and expiration date in 7 days in the server @@ -247,8 +232,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has created file "lorem.txt" in the server And user "Carol" has logged in using the webUI When the user shares folder "lorem.txt" with group "grp1" as "Viewer" using the webUI - And user "Alice" accepts the share "Shares/lorem.txt" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/lorem.txt" offered by user "Carol" using the sharing API in the server Then user "Carol" should have a share with these details in the server: | field | value | | path | /lorem.txt | diff --git a/tests/acceptance/features/webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature b/tests/acceptance/features/webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature index 612a8dbe377..9efc5f95c80 100644 --- a/tests/acceptance/features/webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature +++ b/tests/acceptance/features/webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature @@ -24,8 +24,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has logged in using the webUI When the user shares folder "simple-folder" with group "" as "Viewer" using the webUI And the user shares file "testimage.jpg" with group "" as "Viewer" using the webUI - And user "Alice" accepts the share "Shares/simple-folder" offered by user "Carol" using the sharing API in the server - And user "Alice" accepts the share "Shares/testimage.jpg" offered by user "Carol" using the sharing API in the server Then group "" should be listed as "Can view" in the collaborators list for folder "simple-folder" on the webUI And group "" should be listed as "Can view" in the collaborators list for file "testimage.jpg" on the webUI Examples: @@ -43,8 +41,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has logged in using the webUI When the user shares file "randomfile.txt" with user "Alice Hansen" as "Editor" using the webUI And the user shares file "randomfile.txt" with group "Alice" as "Editor" using the webUI - And user "Alice" accepts the share "Shares/randomfile.txt" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/randomfile.txt" offered by user "Carol" using the sharing API in the server And the user types "Alice" in the share-with-field Then "group" "Alice" should not be listed in the autocomplete list on the webUI And the content of file "Shares/randomfile.txt" for user "Alice" should be "Carol file" in the server @@ -60,8 +56,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has logged in using the webUI When the user shares file "randomfile.txt" with group "Alice" as "Editor" using the webUI And the user shares file "randomfile.txt" with user "Alice Hansen" as "Editor" using the webUI - And user "Alice" accepts the share "Shares/randomfile.txt" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/randomfile.txt" offered by user "Carol" using the sharing API in the server And the user types "Alice" in the share-with-field Then "user" "Alice Hansen" should not be listed in the autocomplete list on the webUI And the content of file "Shares/randomfile.txt" for user "Brian" should be "Carol file" in the server @@ -77,8 +71,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has logged in using the webUI When the user shares file "randomfile.txt" with user "Alice Hansen" as "Editor" using the webUI And the user shares file "randomfile.txt" with group "ALICE" as "Editor" using the webUI - And user "Alice" accepts the share "Shares/randomfile.txt" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/randomfile.txt" offered by user "Carol" using the sharing API in the server And the user types "ALICE" in the share-with-field Then "group" "ALICE" should not be listed in the autocomplete list on the webUI And the content of file "Shares/randomfile.txt" for user "Brian" should be "Carol file" in the server @@ -94,8 +86,6 @@ Feature: Sharing files and folders with internal groups And user "Carol" has logged in using the webUI When the user shares file "randomfile.txt" with group "ALICE" as "Editor" using the webUI And the user shares file "randomfile.txt" with user "Alice Hansen" as "Editor" using the webUI - And user "Alice" accepts the share "Shares/randomfile.txt" offered by user "Carol" using the sharing API in the server - And user "Brian" accepts the share "Shares/randomfile.txt" offered by user "Carol" using the sharing API in the server And the user types "Alice" in the share-with-field Then "user" "Alice Hansen" should not be listed in the autocomplete list on the webUI And the content of file "Shares/randomfile.txt" for user "Brian" should be "Carol file" in the server diff --git a/tests/acceptance/features/webUISharingInternalGroupsSharingIndicator/shareWithGroups.feature b/tests/acceptance/features/webUISharingInternalGroupsSharingIndicator/shareWithGroups.feature index b58d7a0d938..4356fbf21dd 100644 --- a/tests/acceptance/features/webUISharingInternalGroupsSharingIndicator/shareWithGroups.feature +++ b/tests/acceptance/features/webUISharingInternalGroupsSharingIndicator/shareWithGroups.feature @@ -23,7 +23,6 @@ Feature: Sharing files and folders with internal groups And user "Alice" has uploaded file with content "test" to "/simple-folder/lorem.txt" in the server And user "Alice" has uploaded file with content "test" to "/simple-folder/simple-empty-folder/inside.txt" in the server And user "Alice" has shared folder "simple-folder" with group "grp1" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server When user "Alice" has logged in using the webUI Then the following resources should have share indicators on the webUI | fileName | expectedIndicators | @@ -46,7 +45,6 @@ Feature: Sharing files and folders with internal groups And user "Alice" has created folder "simple-folder/simple-empty-folder" in the server And user "Alice" has created file "simple-folder/lorem.txt" in the server And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Brian" has shared folder "Shares/simple-folder" with group "grp1" in the server When user "Brian" has logged in using the webUI And the user opens folder "Shares" using the webUI @@ -67,7 +65,6 @@ Feature: Sharing files and folders with internal groups And user "Alice" has created folder "simple-folder/simple-empty-folder" in the server And user "Alice" has created file "simple-folder/lorem.txt" in the server And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Brian" has shared folder "/Shares/simple-folder/simple-empty-folder" with group "grp1" in the server When user "Brian" has logged in using the webUI And the user opens folder "Shares" using the webUI @@ -88,7 +85,6 @@ Feature: Sharing files and folders with internal groups And user "Alice" has created folder "simple-folder/simple-empty-folder" in the server And user "Alice" has created file "simple-folder/lorem.txt" in the server And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server When user "Brian" has logged in using the webUI And the user opens folder "Shares" using the webUI Then the following resources should have share indicators on the webUI @@ -107,7 +103,6 @@ Feature: Sharing files and folders with internal groups And user "Brian" has created file "simple-folder/lorem.txt" in the server And user "Alice" has created file "textfile0.txt" in the server And user "Alice" has shared file "/textfile0.txt" with group "grp1" in the server - And user "Brian" has accepted the share "Shares/textfile0.txt" offered by user "Alice" in the server When user "Brian" has logged in using the webUI Then the following resources should not have share indicators on the webUI | simple-folder | diff --git a/tests/acceptance/features/webUISharingInternalUsers/shareWithUsers.feature b/tests/acceptance/features/webUISharingInternalUsers/shareWithUsers.feature index 4177833c9d5..4879d72ed57 100644 --- a/tests/acceptance/features/webUISharingInternalUsers/shareWithUsers.feature +++ b/tests/acceptance/features/webUISharingInternalUsers/shareWithUsers.feature @@ -20,9 +20,7 @@ Feature: Sharing files and folders with internal users And user "Brian" has created file "simple-folder/lorem.txt" in the server And user "Brian" has logged in using the webUI When the user shares folder "simple-folder" with user "Alice Hansen" as "" using the webUI - And user "Alice" accepts the share "Shares/simple-folder" offered by user "Brian" using the sharing API in the server And the user shares file "testimage.jpg" with user "Alice Hansen" as "" using the webUI - And user "Alice" accepts the share "Shares/testimage.jpg" offered by user "Brian" using the sharing API in the server Then user "Alice Hansen" should be listed as "" in the collaborators list for folder "simple-folder" on the webUI And user "Alice Hansen" should be listed as "" in the collaborators list for file "testimage.jpg" on the webUI And user "Alice" should have received a share with these details in the server: @@ -57,7 +55,6 @@ Feature: Sharing files and folders with internal users And user "Brian" has logged in using the webUI And user "Brian" has renamed file "lorem.txt" to "new-lorem.txt" in the server And user "Brian" has shared file "new-lorem.txt" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "Shares/new-lorem.txt" offered by user "Brian" in the server When the user re-logs in as "Alice" using the webUI And the user opens folder "Shares" using the webUI Then as "Alice" the content of "Shares/new-lorem.txt" in the server should not be the same as the content of local file "new-lorem.txt" @@ -77,7 +74,6 @@ Feature: Sharing files and folders with internal users And user "Brian" has created file "simple-folder/data.zip" in the server And user "Brian" has logged in using the webUI When the user shares folder "simple-folder" with user "Alice Hansen" as "Editor" using the webUI - And user "Alice" accepts the share "Shares/simple-folder" offered by user "Brian" using the sharing API in the server And the user re-logs in as "Alice" using the webUI And the user browses to the folder "Shares" on the files page And the user reloads the current page of the webUI @@ -108,7 +104,6 @@ Feature: Sharing files and folders with internal users And user "Brian" has logged in using the webUI When the user renames folder "simple-folder" to "new-simple-folder" using the webUI And the user shares folder "new-simple-folder" with user "Alice Hansen" as "Editor" using the webUI - And user "Alice" accepts the share "Shares/new-simple-folder" offered by user "Brian" using the sharing API in the server # unshare the received shared folder and check it is gone And the user re-logs in as "Alice" using the webUI And the user browses to the folder "Shares" on the files page @@ -125,7 +120,6 @@ Feature: Sharing files and folders with internal users Given user "Brian" has created file "simple-folder/lorem.txt" in the server And user "Brian" has logged in using the webUI And user "Brian" has shared folder "simple-folder" with user "Alice" with "create, read, share" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server When the user re-logs in as "Alice" using the webUI And the user opens folder "Shares" using the webUI And the user opens folder "simple-folder" using the webUI @@ -137,9 +131,7 @@ Feature: Sharing files and folders with internal users 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 "Brian" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server And user "Alice" has shared file "lorem.txt" with user "Carol" in the server - And user "Carol" has accepted the share "Shares/lorem.txt" offered by user "Alice" 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 @@ -198,7 +190,6 @@ Feature: Sharing files and folders with internal users And user "Carol" has been created with default attributes and without skeleton files in the server And user "Alice" has uploaded file with content "test" to "/simple-folder/lorem.txt" in the server And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Brian" has shared folder "Shares/simple-folder" with user "Carol" in the server And user "Brian" has logged in using the webUI And the user has opened folder "Shares" @@ -216,9 +207,7 @@ Feature: Sharing files and folders with internal users And user "Brian" has created file "sample,1.txt" in the server And user "Brian" has logged in using the webUI When the user shares folder "Sample,Folder,With,Comma" with user "Alice Hansen" as "" using the webUI - And user "Alice" accepts the share "Shares/Sample,Folder,With,Comma" offered by user "Brian" using the sharing API in the server And the user shares file "sample,1.txt" with user "Alice Hansen" as "" using the webUI - And user "Alice" accepts the share "Shares/sample,1.txt" offered by user "Brian" using the sharing API in the server Then user "Alice Hansen" should be listed as "" in the collaborators list for folder "Sample,Folder,With,Comma" on the webUI And user "Alice Hansen" should be listed as "" in the collaborators list for file "sample,1.txt" on the webUI And user "Alice" should have received a share with these details in the server: @@ -261,7 +250,6 @@ Feature: Sharing files and folders with internal users 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 - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Alice" 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 @@ -269,17 +257,3 @@ Feature: Sharing files and folders with internal users 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 test is skipped in OCIS as it's starting to fail frequently - # and it won't be that much relevant after sharing jail is implemented - # see issue https://github.com/owncloud/web/issues/6419 and - # https://github.com/owncloud/web/issues/6321#issuecomment-1057813530 for more context - @skipOnOCIS - Scenario: Sharing the share_folder to user is not possible - Given user "Carol" has been created with default attributes and without skeleton files in the server - And user "Brian" has shared folder "simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server - And user "Alice" has logged in using the webUI - When the user opens the share dialog for file "Shares" using the webUI - Then the share permission denied message should be displayed in the sharing dialog on the webUI - diff --git a/tests/acceptance/features/webUISharingInternalUsersBlacklisted/shareWithUsers.feature b/tests/acceptance/features/webUISharingInternalUsersBlacklisted/shareWithUsers.feature index 9d129836785..1dadc1b68e6 100644 --- a/tests/acceptance/features/webUISharingInternalUsersBlacklisted/shareWithUsers.feature +++ b/tests/acceptance/features/webUISharingInternalUsersBlacklisted/shareWithUsers.feature @@ -20,9 +20,7 @@ Feature: Sharing files and folders with internal users And group "grp1" has been created in the server And user "Alice" has been added to group "grp1" in the server And user "Carol" has shared file "testimage.jpg" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/testimage.jpg" offered by user "Carol" in the server And user "Carol" has shared folder "simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Carol" in the server And the administrator has enabled exclude groups from sharing in the server And the administrator has excluded group "grp1" from sharing in the server When user "Alice" logs in using the webUI @@ -40,7 +38,6 @@ Feature: Sharing files and folders with internal users And user "Carol" has created folder "common" in the server And user "Carol" has moved file "testimage.jpg" to "common/testimage.jpg" in the server And user "Carol" has shared folder "common" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/common" offered by user "Carol" in the server And the administrator has enabled exclude groups from sharing in the server And the administrator has excluded group "grp1" from sharing in the server And user "Alice" has logged in using the webUI @@ -58,7 +55,6 @@ Feature: Sharing files and folders with internal users And user "Carol" has created folder "common" in the server And user "Carol" has created folder "common/inside-common" in the server And user "Carol" has shared folder "common" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/common" offered by user "Carol" in the server And the administrator has enabled exclude groups from sharing in the server And the administrator has excluded group "grp1" from sharing in the server And user "Alice" has logged in using the webUI @@ -85,7 +81,6 @@ Feature: Sharing files and folders with internal users And user "Carol" has been created with default attributes and without skeleton files in the server And user "Brian" has uploaded file "testavatar.jpg" to "testimage.jpg" in the server And user "Brian" has shared file "/testimage.jpg" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/testimage.jpg" offered by user "Brian" in the server And the administrator has enabled exclude groups from sharing in the server And the administrator has excluded group "grp1" from sharing in the server And user "Alice" has logged in using the webUI diff --git a/tests/acceptance/features/webUISharingInternalUsersCollaborator/shareWithUsers.feature b/tests/acceptance/features/webUISharingInternalUsersCollaborator/shareWithUsers.feature index 814d6931654..96bba4356cb 100644 --- a/tests/acceptance/features/webUISharingInternalUsersCollaborator/shareWithUsers.feature +++ b/tests/acceptance/features/webUISharingInternalUsersCollaborator/shareWithUsers.feature @@ -16,7 +16,6 @@ Feature: Shares collaborator list Scenario Outline: change the collaborators of a file & folder Given user "Brian" has logged in using the webUI And user "Brian" has shared folder "/simple-folder" with user "Alice" with "" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server When the user changes the collaborator role of "Alice Hansen" for folder "simple-folder" to "" with permissions "" using the webUI # check role without reloading the collaborators panel, see issue #1786 Then user "Alice Hansen" should be listed as "" in the collaborators list on the webUI diff --git a/tests/acceptance/features/webUISharingInternalUsersShareWithPage/shareWithUsers.feature b/tests/acceptance/features/webUISharingInternalUsersShareWithPage/shareWithUsers.feature index d98eb066138..1ef52878b9e 100644 --- a/tests/acceptance/features/webUISharingInternalUsersShareWithPage/shareWithUsers.feature +++ b/tests/acceptance/features/webUISharingInternalUsersShareWithPage/shareWithUsers.feature @@ -18,9 +18,7 @@ Feature: Shares in share-with pages And user "Brian" has renamed folder "simple-folder" to "new-simple-folder" in the server And user "Brian" has renamed file "lorem.txt" to "ipsum.txt" in the server And user "Brian" has shared file "ipsum.txt" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/ipsum.txt" offered by user "Brian" in the server And user "Brian" has shared folder "new-simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/new-simple-folder" offered by user "Brian" in the server And user "Alice" has logged in using the webUI When the user browses to the shared-with-me page Then file "ipsum.txt" should be listed on the webUI @@ -32,11 +30,8 @@ Feature: Shares in share-with pages And user "Brian" has created file "lorem.txt" in the server And user "Brian" has logged in using the webUI And user "Brian" has shared file "lorem.txt" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server And user "Brian" has shared folder "simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Brian" has shared folder "simple-folder" with user "Carol" in the server - And user "Carol" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server When the user browses to the shared-with-others page Then the following resources should have the following collaborators | fileName | expectedCollaborators | @@ -68,7 +63,6 @@ Feature: Shares in share-with pages Given user "Alice" has created folder "simple-folder" in the server And user "Alice" has created file "data.zip" in the server And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Brian" has logged in using the webUI When the user browses to the shared-with-me page Then folder "simple-folder" should be listed on the webUI @@ -78,7 +72,6 @@ Feature: Shares in share-with pages Scenario: clicking a folder on shared-with-me page jumps to the main file list inside the folder Given 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 "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Alice" has created file "simple-folder/collaborate-on-this.txt" in the server And user "Brian" has logged in using the webUI When the user browses to the shared-with-me page @@ -89,7 +82,6 @@ Feature: Shares in share-with pages Scenario: unsharing an entry on the shared-with-me page unshares from self Given 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 "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Brian" has logged in using the webUI When the user browses to the shared-with-me page And the user unshares folder "simple-folder" using the webUI @@ -100,7 +92,6 @@ Feature: Shares in share-with pages Scenario: unsharing an entry on the shared-with-me page unshares from self Given 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 "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Brian" has logged in using the webUI When the user browses to the shared-with-me page And the user unshares folder "simple-folder" using the webUI @@ -113,9 +104,7 @@ Feature: Shares in share-with pages 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 shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Alice" has shared file "lorem.txt" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/lorem.txt" offered by user "Alice" in the server And user "Brian" has logged in using the webUI And the user browses to the shared-with-me page in accepted shares view When the user batch unshares these files using the webUI @@ -152,7 +141,6 @@ Feature: Shares in share-with pages Given user "Alice" has created folder "simple-folder" in the server And user "Alice" has logged in using the webUI When the user shares resource "simple-folder" with user "Brian Murphy" using the quick action on the webUI - And user "Brian" accepts the share "Shares/simple-folder" offered by user "Alice" using the sharing API in the server Then user "Brian Murphy" should be listed as "Can view" in the collaborators list for folder "simple-folder" on the webUI And user "Brian" should have received a share with these details in the server: | field | value | diff --git a/tests/acceptance/features/webUISharingInternalUsersSharingIndicator/shareWithUsers.feature b/tests/acceptance/features/webUISharingInternalUsersSharingIndicator/shareWithUsers.feature index aa0d1edbaa6..62514abf26a 100644 --- a/tests/acceptance/features/webUISharingInternalUsersSharingIndicator/shareWithUsers.feature +++ b/tests/acceptance/features/webUISharingInternalUsersSharingIndicator/shareWithUsers.feature @@ -60,7 +60,6 @@ Feature: Sharing files and folders with internal users And user "Alice" has created folder "/simple-folder/simple-empty-folder/new-folder" in the server And user "Alice" has uploaded file with content "test" to "/simple-folder/simple-empty-folder/lorem.txt" in the server And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server When user "Alice" has logged in using the webUI And the user opens the share dialog for folder "simple-folder" using the webUI Then the following resources should have share indicators on the webUI @@ -76,71 +75,6 @@ Feature: Sharing files and folders with internal users | new-folder | user-indirect | | lorem.txt | user-indirect | - # this scenario is skipped on ocis because it opens share folder which in not possible in OCIS - # but it works for OC10 see issue https://github.com/owncloud/web/issues/6896 for more detail - @skipOnOCIS @issue-4167 @issue-6894 - Scenario: sharing indicator of items inside a re-shared folder - Given user "Carol" has been created with default attributes and without skeleton files in the server - And user "Alice" has created folder "/simple-folder/simple-empty-folder" in the server - And user "Alice" has created file "/simple-folder/lorem.txt" in the server - And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server - And user "Brian" has shared folder "Shares/simple-folder" with user "Carol" in the server - When user "Brian" has logged in using the webUI - And the user opens folder "Shares" using the webUI - And the user opens the sharing sidebar for folder "simple-folder" - Then the following resources should have share indicators on the webUI - | fileName | expectedIndicators | - | simple-folder | user-direct | - When the user opens folder "simple-folder" using the webUI - Then the following resources should have share indicators on the webUI - | fileName | expectedIndicators | - | simple-empty-folder | user-indirect | - | lorem.txt | user-indirect | - - # this scenario is skipped on ocis because it opens share folder which in not possible in OCIS - # but it works for OC10 see issue https://github.com/owncloud/web/issues/6896 for more detail - @skipOnOCIS @issue-4167 - Scenario: sharing indicator of items inside a re-shared subfolder - Given user "Carol" has been created with default attributes and without skeleton files in the server - And user "Alice" has created folder "/simple-folder/simple-empty-folder" in the server - And user "Alice" has created file "/simple-folder/lorem.txt" in the server - And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server - And user "Brian" has shared folder "Shares/simple-folder/simple-empty-folder" with user "Carol" in the server - And user "Brian" has logged in using the webUI - When the user opens folder "Shares" using the webUI - And the user opens the sharing sidebar for folder "simple-folder" - Then the following resources should have share indicators on the webUI - | fileName | expectedIndicators | - | simple-folder | user-indirect | - When the user opens folder "simple-folder" using the webUI - And the user opens the sharing sidebar for file "lorem.txt" - Then the following resources should have share indicators on the webUI - | fileName | expectedIndicators | - | simple-empty-folder | user-direct | - | lorem.txt | user-indirect | - - # this scenario is skipped on ocis because it opens share folder which in not possible in OCIS - # but it works for OC10 see issue https://github.com/owncloud/web/issues/6896 for more detail - @skipOnOCIS @issue-2060 @issue-4167 @ocis-issue-891 - Scenario: sharing indicator of items inside an incoming shared folder - Given user "Alice" has created folder "/simple-folder/simple-empty-folder" in the server - And user "Alice" has created file "/simple-folder/lorem.txt" in the server - And user "Alice" has shared folder "simple-folder" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server - When user "Brian" has logged in using the webUI - And the user opens folder "Shares" using the webUI - And the user opens the sharing sidebar for folder "simple-folder" - Then the following resources should have share indicators on the webUI - | fileName | expectedIndicators | - | simple-folder | user-indirect | - When the user opens folder "simple-folder" using the webUI - Then the following resources should have share indicators on the webUI - | fileName | expectedIndicators | - | simple-empty-folder | user-indirect | - | lorem.txt | user-indirect | - @issue-2060 @issue-4172 Scenario: no sharing indicator of items inside a not shared folder Given user "Brian" has created folder "simple-folder" in the server @@ -148,7 +82,6 @@ Feature: Sharing files and folders with internal users And user "Brian" has created file "/simple-folder/lorem.txt" in the server And user "Alice" has created file "textfile0.txt" in the server And user "Alice" has shared file "/textfile0.txt" with user "Brian" in the server - And user "Brian" has accepted the share "Shares/textfile0.txt" offered by user "Alice" in the server When user "Brian" has logged in using the webUI Then the following resources should not have share indicators on the webUI | simple-folder | diff --git a/tests/acceptance/features/webUISharingPermissionsUsers/sharePermissionsUsers.feature b/tests/acceptance/features/webUISharingPermissionsUsers/sharePermissionsUsers.feature index 9c1699e038c..8f84369da60 100644 --- a/tests/acceptance/features/webUISharingPermissionsUsers/sharePermissionsUsers.feature +++ b/tests/acceptance/features/webUISharingPermissionsUsers/sharePermissionsUsers.feature @@ -20,7 +20,6 @@ Feature: Sharing files and folders with internal users with different permission @issue-ocis-2260 Scenario: Change permissions of the previously shared folder to read, share Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Brian" has logged in using the webUI Then no custom permissions should be set for collaborator "Alice Hansen" for folder "simple-folder" on the webUI When the user sets custom permission for current role of collaborator "Alice Hansen" for folder "simple-folder" to "share" using the webUI @@ -35,7 +34,6 @@ Feature: Sharing files and folders with internal users with different permission @issue-1853 @issue-ocis-2260 Scenario: Change permissions of the previously shared folder to all permissions Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share, create, delete" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Brian" has logged in using the webUI Then custom permissions "share, create, delete" should be set for user "Alice Hansen" for folder "simple-folder" on the webUI When the user sets custom permission for current role of collaborator "Alice Hansen" for folder "simple-folder" to "create, delete, share" using the webUI @@ -51,7 +49,6 @@ Feature: Sharing files and folders with internal users with different permission @issue-1853 @issue-ocis-2260 Scenario: Change permissions of the previously shared folder to update, delete Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share, create" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Brian" has logged in using the webUI Then custom permissions "share, create" should be set for user "Alice Hansen" for folder "simple-folder" on the webUI When the user sets custom permission for current role of collaborator "Alice Hansen" for folder "simple-folder" to "delete, update" using the webUI @@ -67,7 +64,6 @@ Feature: Sharing files and folders with internal users with different permission @issue-ocis-2260 Scenario: Change permissions of the previously shared folder to read, create, share Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, delete" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Brian" has logged in using the webUI Then custom permissions "delete" should be set for user "Alice Hansen" for folder "simple-folder" on the webUI When the user sets custom permission for current role of collaborator "Alice Hansen" for folder "simple-folder" to "create, share" using the webUI @@ -84,7 +80,6 @@ Feature: Sharing files and folders with internal users with different permission Scenario Outline: share a folder with another internal user assigning a role and the permissions Given user "Brian" has logged in using the webUI When the user shares folder "simple-folder" with user "Alice Hansen" as "" with permissions "" using the webUI - And user "Alice" accepts the share "Shares/simple-folder" offered by user "Brian" using the sharing API in the server Then user "Alice Hansen" should be listed as "" in the collaborators list for folder "simple-folder" on the webUI And custom permissions "" should be set for user "Alice Hansen" for folder "simple-folder" on the webUI And user "Alice" should have received a share with these details in the server: @@ -105,7 +100,6 @@ Feature: Sharing files and folders with internal users with different permission @issue-ocis-2260 Scenario Outline: Change permissions of the previously shared file Given user "Brian" has shared file "lorem.txt" with user "Alice" with "" permissions in the server - And user "Alice" has accepted the share "Shares/lorem.txt" offered by user "Brian" in the server And user "Brian" has logged in using the webUI Then custom permission "" should be set for user "Alice Hansen" for file "lorem.txt" on the webUI When the user sets custom permission for current role of collaborator "Alice Hansen" for file "lorem.txt" to "share" using the webUI @@ -125,7 +119,6 @@ Feature: Sharing files and folders with internal users with different permission Scenario: Delete all custom permissions of the previously shared folder Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read, update" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Brian" has logged in using the webUI When the user disables all the custom permissions of collaborator "Alice Hansen" for folder "simple-folder" using the webUI Then no custom permissions should be set for collaborator "Alice Hansen" for folder "simple-folder" on the webUI @@ -141,7 +134,6 @@ Feature: Sharing files and folders with internal users with different permission Scenario Outline: share a file with another internal user assigning a role and the permissions Given user "Brian" has logged in using the webUI When the user shares file "lorem.txt" with user "Alice Hansen" as "" with permissions "" using the webUI - And user "Alice" accepts the share "Shares/lorem.txt" offered by user "Brian" using the sharing API in the server Then user "Alice Hansen" should be listed as "" in the collaborators list for file "lorem.txt" on the webUI And custom permissions "" should be set for user "Alice Hansen" for file "lorem.txt" on the webUI And user "Alice" should have received a share with these details in the server: @@ -160,7 +152,6 @@ Feature: Sharing files and folders with internal users with different permission @issue-ocis-2260 Scenario: Share a folder without share permissions using API and check if it is listed on the collaborators list for original owner Given user "Brian" has shared folder "simple-folder" with user "Alice" with "read" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Brian" has logged in using the webUI When the user opens the share dialog for folder "simple-folder" using the webUI Then user "Alice Hansen" should be listed as "Custom permissions" in the collaborators list for folder "simple-folder" on the webUI @@ -170,9 +161,7 @@ Feature: Sharing files and folders with internal users with different permission Scenario: Resource owner upgrades share permissions of a re-share Given user "Carol" has been created with default attributes and without skeleton files in the server And user "Brian" has shared folder "simple-folder" with user "Alice" with "read, share, delete" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has shared folder "/Shares/simple-folder" with user "Carol" with "read, delete" permissions in the server - And user "Carol" has accepted the share "Shares/simple-folder" offered by user "Alice" in the server And user "Brian" has logged in using the webUI When the user sets custom permission for current role of collaborator "Carol King" for folder "simple-folder" to "delete, update" using the webUI Then custom permissions "delete, update" should be set for user "Carol King" for folder "simple-folder" on the webUI @@ -190,13 +179,11 @@ Feature: Sharing files and folders with internal users with different permission Scenario: User is allowed to update permissions of a reshared sub-folder within the permissions that the user has received Given user "Carol" has been created with default attributes and without skeleton files in the server And user "Brian" has shared folder "simple-folder" with user "Alice" with "all" permissions in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server And user "Alice" has shared folder "/Shares/simple-folder" with user "Carol" with "share, delete" permissions in the server And user "Alice" has logged in using the webUI When the user opens folder "Shares" using the webUI And the user opens folder "simple-folder" using the webUI And the user shares folder "simple-empty-folder" with user "Carol King" as "Custom permissions" with permissions "share, delete, create, update" using the webUI - And user "Carol" accepts the share "Shares/simple-empty-folder" offered by user "Alice" using the sharing API in the server Then user "Carol" should have received a share with these details in the server: | field | value | | uid_owner | Alice | diff --git a/tests/acceptance/features/webUISharingPublicBasic/publicLinkCreate.feature b/tests/acceptance/features/webUISharingPublicBasic/publicLinkCreate.feature index 167022319f2..1aaa3ce3511 100644 --- a/tests/acceptance/features/webUISharingPublicBasic/publicLinkCreate.feature +++ b/tests/acceptance/features/webUISharingPublicBasic/publicLinkCreate.feature @@ -179,17 +179,3 @@ Feature: Create public link shares """ The link has been copied to your clipboard. """ - - # This test is skipped in OCIS as the sharing jail has been implemented - @skipOnOCIS - Scenario: Sharing the share_folder as public link is not possible - Given the setting "shareapi_auto_accept_share" of app "core" has been set to "no" in the server - And the administrator has set the default folder for received shares to "Shares" in the server - And user "Brian" has been created with default attributes and without skeleton files in the server - And user "Brian" has created folder "simple-folder" in the server - And user "Carol" has been created with default attributes and without skeleton files in the server - And user "Brian" has shared folder "simple-folder" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/simple-folder" offered by user "Brian" in the server - And user "Alice" has logged in using the webUI - And the user opens the link share dialog for folder "Shares" using the webUI - Then the link share permission denied message should be displayed in the sharing dialog on the webUI diff --git a/tests/acceptance/features/webUITrashbinRestore/trashbinRestore.feature b/tests/acceptance/features/webUITrashbinRestore/trashbinRestore.feature index 4aefd7ce6b0..b13b0046f86 100644 --- a/tests/acceptance/features/webUITrashbinRestore/trashbinRestore.feature +++ b/tests/acceptance/features/webUITrashbinRestore/trashbinRestore.feature @@ -180,7 +180,6 @@ Feature: Restore deleted files/folders And user "Carol" has created folder "folder-to-share" in the server And user "Carol" has uploaded file with content "does-not-matter" to "folder-to-share/fileToShare.txt" in the server And user "Carol" has shared folder "folder-to-share" with user "Alice" in the server - And user "Alice" has accepted the share "Shares/folder-to-share" offered by user "Carol" in the server And the user has reloaded the current page of the webUI When the user opens folder "Shares" using the webUI And the user opens folder "folder-to-share" using the webUI