diff --git a/tests/acceptance/config/behat-core.yml b/tests/acceptance/config/behat-core.yml index 25bd0f6c1e..182e7170e1 100644 --- a/tests/acceptance/config/behat-core.yml +++ b/tests/acceptance/config/behat-core.yml @@ -264,6 +264,7 @@ default: context: *common_ldap_suite_context contexts: - FeatureContext: *common_feature_context_params + - SharingNgContext: - WebDavPropertiesContext: coreApiWebdavProperties: diff --git a/tests/acceptance/features/coreApiWebdavPreviews/previews.feature b/tests/acceptance/features/coreApiWebdavPreviews/previews.feature index 58c543a397..36afc696df 100644 --- a/tests/acceptance/features/coreApiWebdavPreviews/previews.feature +++ b/tests/acceptance/features/coreApiWebdavPreviews/previews.feature @@ -134,12 +134,17 @@ Feature: previews of files downloaded through the webdav API | new | | spaces | - @skipOnReva + Scenario Outline: download previews of shared files (to shares folder) Given using DAV path And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has uploaded file "filesForUpload/" to "/" - And user "Alice" has shared file "/" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | When user "Brian" downloads the preview of shared resource "/Shares/" with width "32" and height "32" using the WebDAV API Then the HTTP status code should be "200" And the downloaded image should be "32" pixels wide and "32" pixels high @@ -207,12 +212,17 @@ Feature: previews of files downloaded through the webdav API | new | | spaces | - @issue-2538 @skipOnReva + @issue-2538 Scenario Outline: when owner updates a shared file, previews for sharee are also updated (to shared folder) Given using DAV path And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/parent.txt" - And user "Alice" has shared file "/parent.txt" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | parent.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | And user "Brian" has downloaded the preview of shared resource "/Shares/parent.txt" with width "32" and height "32" When user "Alice" uploads file with content "this is a file to upload" to "/parent.txt" using the WebDAV API Then the HTTP status code should be "204" @@ -238,13 +248,18 @@ Feature: previews of files downloaded through the webdav API | new | | spaces | - @skipOnReva + Scenario Outline: updates to a file should change the preview for both sharees and sharers Given using DAV path And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "FOLDER" And user "Alice" has uploaded file with content "file to upload" to "/FOLDER/lorem.txt" - And user "Alice" has shared folder "FOLDER" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | FOLDER | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | And user "Alice" has downloaded the preview of "/FOLDER/lorem.txt" with width "32" and height "32" And user "Brian" has downloaded the preview of shared resource "Shares/FOLDER/lorem.txt" with width "32" and height "32" When user "Alice" uploads file "filesForUpload/lorem.txt" to "/FOLDER/lorem.txt" using the WebDAV API @@ -261,7 +276,7 @@ Feature: previews of files downloaded through the webdav API | new | | spaces | - @skipOnReva + Scenario Outline: updates to a group shared file should change the preview for both sharees and sharers Given using DAV path And group "grp1" has been created @@ -271,7 +286,12 @@ Feature: previews of files downloaded through the webdav API And user "Carol" has been added to group "grp1" And user "Alice" has created folder "FOLDER" And user "Alice" has uploaded file with content "file to upload" to "/FOLDER/lorem.txt" - And user "Alice" has shared folder "/FOLDER" with group "grp1" + And user "Alice" has sent the following resource share invitation: + | resource | FOLDER | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Editor | And user "Alice" has downloaded the preview of "/FOLDER/lorem.txt" with width "32" and height "32" And user "Brian" has downloaded the preview of shared resource "Shares/FOLDER/lorem.txt" with width "32" and height "32" And user "Carol" has downloaded the preview of shared resource "Shares/FOLDER/lorem.txt" with width "32" and height "32"