Skip to content

Commit 8523528

Browse files
authored
test: adjust WedDav preview test case for Devanagari script [full-ci] (#41672)
test: adjust WedDav preview test case for Devanagari script This acceptance test case use Devenagari script as an example of a non-Latin script. It confirms that a preview of a text file containing Devanagari script can be produced in PNG format. The preview used in the test scenario has been made bigger (64x64). That makes the graphic resolution good enough that I can manually recognise the characters rendered in the resulting PNG image, and confirm that they are a good rendering of the text. Note: depending on the installed environment, some Devanagari ligatures may not be rendered correctly. That also applies for other scripts. If an installation wants to accurately support rendering of a wide range of scripts, then they need to organise to have suitable additional libraries installed that will support those scripts. The purpose of this test scenario is not to ensure that all scripts work correctly. The purpose is just to ensure that some combination of non-Latin characters can be correctly processed, stored as a preview, and the binary content of the preview is correctly returned to the user that called the API.
1 parent 4791bee commit 8523528

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/acceptance/features/apiWebdavPreviews/previews.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,14 @@ Feature: previews of files downloaded through the webdav API
207207
Then the HTTP status code should be "204"
208208
And as user "Brian" the preview of "/Shares/parent.txt" with width "32" and height "32" should have been changed
209209

210-
@issue-41480 @skip
210+
211211
Scenario: it should update the preview content if the file content is updated (content with UTF chars)
212212
Given user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/lorem.txt"
213-
And user "Alice" has uploaded file with content "सिमसिमे पानी" to "/lorem.txt"
214-
When user "Alice" downloads the preview of "/lorem.txt" with width "32" and height "32" using the WebDAV API
213+
And user "Alice" has uploaded file with content "मेरो पानी" to "/lorem.txt"
214+
When user "Alice" downloads the preview of "/lorem.txt" with width "64" and height "64" using the WebDAV API
215215
Then the HTTP status code should be "200"
216-
And the downloaded image should be "32" pixels wide and "32" pixels high
217-
And the downloaded preview content should match with "सिमसिमे-पानी.png" fixtures preview content
216+
And the downloaded image should be "64" pixels wide and "64" pixels high
217+
And the downloaded preview content should match with "मेरो-पानी.png" fixtures preview content
218218

219219

220220
Scenario: updates to a file should change the preview for both sharees and sharers
728 Bytes
Loading
-407 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)