From 8ea16f1d7c2238e43e63acba0f86b27242c53d38 Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi Date: Wed, 25 May 2022 16:29:09 +0545 Subject: [PATCH] Adjust test for OCIS --- .../apiWebdavPreviews/previews.feature | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/tests/acceptance/features/apiWebdavPreviews/previews.feature b/tests/acceptance/features/apiWebdavPreviews/previews.feature index 16f5ba1a8cbf..1f0d7f17f6fe 100644 --- a/tests/acceptance/features/apiWebdavPreviews/previews.feature +++ b/tests/acceptance/features/apiWebdavPreviews/previews.feature @@ -217,25 +217,29 @@ Feature: previews of files downloaded through the webdav API @skipOnOcV10.6 @skipOnOcV10.7 @skipOnOcV10.8.0 Scenario: updates to a file should change the preview for both sharees and sharers - Given user "Brian" has been created with default attributes and without skeleton files + Given the administrator has set the default folder for received shares to "Shares" + And auto-accept shares has been disabled + 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 "Brian" has accepted share "/FOLDER" offered by user "Alice" 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 "/FOLDER/lorem.txt" with width "32" and height "32" + And user "Brian" has downloaded the preview of "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 Then the HTTP status code should be "204" And as user "Alice" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed - And as user "Brian" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed - When user "Brian" uploads file with content "new uploaded content" to "/FOLDER/lorem.txt" using the WebDAV API + And as user "Brian" the preview of "Shares/FOLDER/lorem.txt" with width "32" and height "32" should have been changed + When user "Brian" uploads file with content "new uploaded content" to "Shares/FOLDER/lorem.txt" using the WebDAV API Then the HTTP status code should be "204" And as user "Alice" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed - And as user "Brian" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed + And as user "Brian" the preview of "Shares/FOLDER/lorem.txt" with width "32" and height "32" should have been changed @skipOnOcV10.6 @skipOnOcV10.7 @skipOnOcV10.8.0 Scenario: updates to a group shared file should change the preview for both sharees and sharers - Given group "grp1" has been created + Given the administrator has set the default folder for received shares to "Shares" + And auto-accept shares has been disabled + And group "grp1" has been created And user "Brian" has been created with default attributes and without skeleton files And user "Carol" has been created with default attributes and without skeleton files And user "Brian" has been added to group "grp1" @@ -246,18 +250,18 @@ Feature: previews of files downloaded through the webdav API And user "Brian" has accepted share "/FOLDER" offered by user "Alice" And user "Carol" has accepted share "/FOLDER" offered by user "Alice" 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 "/FOLDER/lorem.txt" with width "32" and height "32" - And user "Carol" has downloaded the preview of "/FOLDER/lorem.txt" with width "32" and height "32" + And user "Brian" has downloaded the preview of "Shares/FOLDER/lorem.txt" with width "32" and height "32" + And user "Carol" has downloaded the preview of "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 Then the HTTP status code should be "204" And as user "Alice" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed - And as user "Brian" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed - And as user "Carol" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed - When user "Brian" uploads file with content "new uploaded content" to "/FOLDER/lorem.txt" using the WebDAV API + And as user "Brian" the preview of "Shares/FOLDER/lorem.txt" with width "32" and height "32" should have been changed + And as user "Carol" the preview of "Shares/FOLDER/lorem.txt" with width "32" and height "32" should have been changed + When user "Brian" uploads file with content "new uploaded content" to "Shares/FOLDER/lorem.txt" using the WebDAV API Then the HTTP status code should be "204" And as user "Alice" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed - And as user "Brian" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed - And as user "Carol" the preview of "/FOLDER/lorem.txt" with width "32" and height "32" should have been changed + And as user "Brian" the preview of "Shares/FOLDER/lorem.txt" with width "32" and height "32" should have been changed + And as user "Carol" the preview of "Shares/FOLDER/lorem.txt" with width "32" and height "32" should have been changed @skipOnOcV10.6 @skipOnOcV10.7 @skipOnOcV10.8.0 @notToImplementOnOCIS Scenario: JPEG preview quality can be determined by config