copy feature files from core

This commit is contained in:
Saw-jan
2023-01-05 09:22:52 +05:45
committed by Phil Davis
parent 35d4cb53ae
commit c59392bc1e
336 changed files with 52903 additions and 0 deletions
@@ -0,0 +1,25 @@
@api @preview-extension-required
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
So that the previews always have a similar look-and-feel to the original file
This is optional behavior of an implementation. OCIS happens like this,
but oC10 does not do this auto-fix of the aspect ratio.
Background:
Given user "Alice" has been created with default attributes and without skeleton files
@skipOnOcV10
Scenario Outline: download different sizes of previews of file
Given user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/parent.txt"
When user "Alice" downloads the preview of "/parent.txt" with width <request_width> and height <request_height> using the WebDAV API
Then the HTTP status code should be "200"
And the downloaded image should be <return_width> pixels wide and <return_height> pixels high
Examples:
| request_width | request_height | return_width | return_height |
| 1 | 1 | 16 | 16 |
| 32 | 32 | 32 | 32 |
| 1024 | 1024 | 640 | 480 |
| 1 | 1024 | 16 | 16 |
| 1024 | 1 | 640 | 480 |