Add test for animated gif preview (#6693)

This commit is contained in:
Amrita authored and GitHub committed 2023-07-11 11:55:26 +05:45
1 parent 5f9934a980
commit 6fcb41d405
3 files changed
+14 -10

No files matched your search

@@ -215,11 +215,11 @@ cannot share a folder with create permission
#### [download previews of other users file](https://github.com/owncloud/ocis/issues/2071)
- [coreApiWebdavPreviews/previews.feature:91](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavPreviews/previews.feature#L91)
- [coreApiWebdavPreviews/previews.feature:95](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavPreviews/previews.feature#L95)
#### [different error message detail for previews of folder](https://github.com/owncloud/ocis/issues/2064)
- [coreApiWebdavPreviews/previews.feature:100](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavPreviews/previews.feature#L100)
- [coreApiWebdavPreviews/previews.feature:104](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavPreviews/previews.feature#L104)
#### [copying a folder within a public link folder to folder with same name as an already existing file overwrites the parent file](https://github.com/owncloud/ocis/issues/1232)
@@ -569,7 +569,7 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers
#### [Preview of text file with UTF content does not render correctly](https://github.com/owncloud/ocis/issues/2570)
- [coreApiWebdavPreviews/previews.feature:134](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavPreviews/previews.feature#L134)
- [coreApiWebdavPreviews/previews.feature:138](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavPreviews/previews.feature#L138)
#### [Share path in the response is different between share states](https://github.com/owncloud/ocis/issues/2540)
@@ -1,4 +1,4 @@
@api @preview-extension-required
@api
Feature: previews of files downloaded through the webdav API
Background:
@@ -78,14 +78,18 @@ Feature: previews of files downloaded through the webdav API
And the downloaded image should be "32" pixels wide and "32" pixels high
Scenario: download previews of shared files (to shares folder)
Scenario Outline: download previews of shared files (to shares folder)
Given 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 "Brian" has accepted share "/parent.txt" offered by user "Alice"
When user "Brian" downloads the preview of "/Shares/parent.txt" with width "32" and height "32" using the WebDAV API
And user "Alice" has uploaded file "filesForUpload/<resource>" to "/<resource>"
And user "Alice" has shared file "/<resource>" with user "Brian"
And user "Brian" has accepted share "/<resource>" offered by user "Alice"
When user "Brian" downloads the preview of "/Shares/<resource>" 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
Examples:
| resource |
| lorem.txt |
| example.gif |
Scenario: download previews of other users files
@@ -1,4 +1,4 @@
@api @preview-extension-required
@api
Feature: sizing of previews of files downloaded through the webdav API
As a user
I want the aspect-ratio of previews to be preserved even when I ask for an unusual preview size