This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-b06566fa-63a0-4839-b06b-0b8f6cae9645 XWIKI-25101 Open

Add automated test for "Export Office page as ODT"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-82ed426d-d3c8-454a-91b8-83b8d7dd4597 Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Export Office page as ODT"
Issue Type: cid:jira-generated-image-avatar-b06566fa-63a0-4839-b06b-0b8f6cae9645 Task
Affects Versions: 11.10.13
Assignee: Unassigned
Components: Development Issues only
Created: 01/Oct/26 20:51
Labels: testneeded
Priority: cid:jira-generated-image-static-major-d9c50991-701e-4d69-a806-8928f126e541 Major
Reporter: Vincent Massol
Description:

The manual test is here: Export Office page as ODT

Existing automated coverage

  • OfficeExporterIT#exportODT: Exports a page to ODT through the export URL (format=odt) and checks with Tika that the result is an ODT document; the page only contains the word "content".
  • OfficeImporterIT#verifyImport: Precondition: creating pages from office documents (ODT, DOC, etc.) with the Office Importer.

Missing automated coverage

  • Import an office document (e.g. one with headings, a table and an image) with the Office Importer to create the page
  • On that page open More actions > Export, select ODT in the export modal (ExportModal#exportAs) instead of calling the export URL
  • Download the ODT and assert its content (text, headings, table cells, embedded image) matches the wiki page, not only its MIME type

Suggested location: xwiki-platform-core/xwiki-platform-office/xwiki-platform-office-test/xwiki-platform-office-test-docker/src/test/it/org/xwiki/officeimporter/test/ui/OfficeExporterIT.java

Found by comparing the XWiki 18.4.4 manual test runs against the automated tests on master (a0055f10a1a).