[MGNLCTS-52] Align TranslationFileDownloadAction + command with ExportAction + command Created: 13/Feb/14  Updated: 12/Jun/14  Resolved: 17/Feb/14

Status: Closed
Project: Content Translation Support
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Improvement Priority: Neutral
Reporter: Daniel Lipp Assignee: Peili Liang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLCTS-51 Add UI Integration Test for Entire Do... Open
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

It looks like we cannot suppress the save dialog in UI tests for CTS (yet) because the TranslationFileDownloadAction + command are quite different from ExportAction + command. Especially it looks like the main reason is, that no mime type is set in the TranslationFileDownload. Pls check how it can be aligned with the default ExportAction + commond. Once this is done, MGNLCTS-51 should be easy to resolve.



 Comments   
Comment by Peili Liang [ 17/Feb/14 ]

We used Apache Tika to get the mime type for the download. This returns application/zip, text/csv, or application/vnd.ms-excel for each of the download file types, all of which are supported by the current UI test driver as updated in http://jira.magnolia-cms.com/browse/MAGNOLIA-5672.

We did not use info.magnolia.cms.beans.config.MIMEMapping because it currently does not have a mapping for CSV files.

Generated at Mon Feb 12 00:32:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.