review addressed

This commit is contained in:
amrita
2024-11-28 10:44:44 +05:45
parent 62b314dc91
commit cf8a83cb36
6 changed files with 53 additions and 51 deletions
@@ -1864,17 +1864,22 @@ Feature: check file info with different wopi apps
| application/octet-stream |
Scenario: check that '/app/list' contain WebOffice template
Scenario: check target extensions for template mime types
When user "Alice" sends HTTP method "GET" to URL "/app/list"
Then the HTTP status code should be "200"
And the app list response should contain the following information:
| mimeType | onlyOffice | collabora |
| application/vnd.ms-powerpoint.template.macroenabled.12 | pptx | |
| application/vnd.oasis.opendocument.presentation-template | pptx | odp |
| application/vnd.openxmlformats-officedocument.spreadsheetml.template | xlsx | |
| application/vnd.oasis.opendocument.spreadsheet-template | xlsx | ods |
| application/vnd.openxmlformats-officedocument.presentationml.template | pptx | |
| application/vnd.openxmlformats-officedocument.wordprocessingml.template | docx | |
| application/vnd.ms-word.template.macroenabled.12 | docx | |
| application/vnd.oasis.opendocument.text-template | docx | odt |
| application/vnd.ms-excel.template.macroenabled.12 | xlsx | |
And the app list response should contain the following template information for office "OnlyOffice":
| mime-type | target-extension |
| application/vnd.oasis.opendocument.spreadsheet-template | xlsx |
| application/vnd.oasis.opendocument.text-template | docx |
| application/vnd.oasis.opendocument.presentation-template | pptx |
| application/vnd.openxmlformats-officedocument.spreadsheetml.template | xlsx |
| application/vnd.openxmlformats-officedocument.presentationml.template | pptx |
| application/vnd.openxmlformats-officedocument.wordprocessingml.template | docx |
| application/vnd.ms-word.template.macroenabled.12 | docx |
| application/vnd.ms-powerpoint.template.macroenabled.12 | pptx |
| application/vnd.ms-excel.template.macroenabled.12 | xlsx |
And the app list response should contain the following template information for office "Collabora":
| mime-type | target-extension |
| application/vnd.oasis.opendocument.spreadsheet-template | ods |
| application/vnd.oasis.opendocument.text-template | odt |
| application/vnd.oasis.opendocument.presentation-template | odp |
@@ -1082,10 +1082,11 @@ Feature: collaboration (wopi)
| simple.odt |
Scenario Outline: open file with .potx extension and template
Given user "Alice" has uploaded file "filesForUpload/template.xltx" to "template.xltx"
Scenario Outline: create a file using a template
Given using spaces DAV path
And user "Alice" has uploaded file "filesForUpload/<template>" to "<template>"
And we save it into "TEMPLATEID"
And user "Alice" has created a file "template.pptx" in space "Personal" using wopi endpoint
And user "Alice" has created a file "<target>" using wopi endpoint
And we save it into "FILEID"
When user "Alice" sends HTTP method "POST" to URL "<app-endpoint>"
Then the HTTP status code should be "200"
@@ -1125,6 +1126,6 @@ Feature: collaboration (wopi)
}
"""
Examples:
| app-endpoint |
| /app/open?file_id=<<FILEID>>&app_name=Collabora&view_mode=write&template_id=<<TEMPLATEID>> |
| /app/open?file_id=<<FILEID>>&app_name=OnlyOffice&view_mode=write&template_id=<<TEMPLATEID>> |
| app-endpoint | template | target |
| /app/open?file_id=<<FILEID>>&app_name=Collabora&view_mode=write&template_id=<<TEMPLATEID>> | template.ott | template.odt |
| /app/open?file_id=<<FILEID>>&app_name=OnlyOffice&view_mode=write&template_id=<<TEMPLATEID>> | template.dotx | template.docx |