diff --git a/tests/acceptance/config/behat.yml b/tests/acceptance/config/behat.yml index 3daba86a83..60e11584d8 100644 --- a/tests/acceptance/config/behat.yml +++ b/tests/acceptance/config/behat.yml @@ -269,6 +269,7 @@ default: - SpacesTUSContext: - TagContext: - TUSContext: + - SharingNgContext: apiSearchContent: paths: diff --git a/tests/acceptance/features/apiSearch2/mediaTypeSearch.feature b/tests/acceptance/features/apiSearch2/mediaTypeSearch.feature index 7f5d33d362..8d32ce5a90 100644 --- a/tests/acceptance/features/apiSearch2/mediaTypeSearch.feature +++ b/tests/acceptance/features/apiSearch2/mediaTypeSearch.feature @@ -109,7 +109,12 @@ Feature: media type search And user "Alice" has uploaded file "filesForUpload/data.7z" to "/uploadFolder/data.7z" And user "Alice" has uploaded file "filesForUpload/data.rar" to "/uploadFolder/data.rar" And user "Alice" has uploaded file "filesForUpload/data.tar.bz2" to "/uploadFolder/data.tar.bz2" - And user "Alice" has shared folder "uploadFolder" with user "Brian" + And user "Alice" has sent the following share invitation: + | resource | uploadFolder | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | When user "Brian" searches for "mediatype:" using the WebDAV API Then the HTTP status code should be "207" And the search result should contain "1" entries @@ -140,9 +145,11 @@ Feature: media type search And user "Alice" has uploaded a file "filesForUpload/data.7z" to "/data.7z" in space "project101" And user "Alice" has uploaded a file "filesForUpload/data.rar" to "/data.rar" in space "project101" And user "Alice" has uploaded a file "filesForUpload/data.tar.bz2" to "/data.tar.bz2" in space "project101" - And user "Alice" has shared a space "project101" with settings: - | shareWith | Brian | - | role | viewer | + And user "Alice" has sent the following share invitation: + | space | project101 | + | sharee | Brian | + | shareType | user | + | permissionsRole | Space Viewer | When user "Brian" searches for "mediatype:" using the WebDAV API Then the HTTP status code should be "207" And the search result should contain "1" entries diff --git a/tests/acceptance/features/apiSearch2/tagSearch.feature b/tests/acceptance/features/apiSearch2/tagSearch.feature index 6f32057f19..0d63838602 100644 --- a/tests/acceptance/features/apiSearch2/tagSearch.feature +++ b/tests/acceptance/features/apiSearch2/tagSearch.feature @@ -125,7 +125,12 @@ Feature: tag search And user "Alice" has uploaded file with content "hello nepal" to "uploadFolder/file3.txt" And user "Alice" has created the following tags for file "uploadFolder/file1.txt" of the space "Personal": | tag1 | - And user "Alice" has shared folder "/uploadFolder" with user "Brian" + And user "Alice" has sent the following share invitation: + | resource | uploadFolder | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | And user "Brian" has created the following tags for file "uploadFolder/file2.txt" of the space "Shares": | tag1 | When user "Brian" searches for "Tags:tag1" using the WebDAV API @@ -149,9 +154,11 @@ Feature: tag search And user "Brian" has been created with default attributes and without skeleton files And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API And user "Alice" has created a space "tag-space" with the default quota using the Graph API - And user "Alice" has shared a space "tag-space" with settings: - | shareWith | Brian | - | role | viewer | + And user "Alice" has sent the following share invitation: + | space | tag-space | + | sharee | Brian | + | shareType | user | + | permissionsRole | Space Viewer | And user "Alice" has created a folder "spacesFolderWithFile/spacesSubFolder" in space "tag-space" And user "Alice" has uploaded a file inside space "tag-space" with content "tagged file" to "spacesFile.txt" And user "Alice" has uploaded a file inside space "tag-space" with content "untagged file" to "spacesFileWithoutTag.txt"