This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-3164c0cd-6573-4d92-a512-3a1a0c9f77b5 XWIKI-25097 Open

Add automated test for "Import Office Document with uncheck Filter Styles"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6a7d573f-2226-4a95-b96a-f9e916269e47 Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Import Office Document with uncheck Filter Styles"
Issue Type: cid:jira-generated-image-avatar-3164c0cd-6573-4d92-a512-3a1a0c9f77b5 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-34e87f5c-e841-4eb3-8505-1c30a446f5c1 Major
Reporter: Vincent Massol
Description:

The manual test is here: Import Office Document with uncheck Filter Styles

Existing automated coverage

  • OfficeImporterIT#verifyImport: creates a page of type "Page From Office" and imports .doc/.ppt/.xls/.odt/.odp/.ods files, checking the resulting content

Missing automated coverage

  • Create a "Page From Office" page, select an office document (e.g. Test.odt and Test.doc), uncheck "Filter styles" (OfficeImporterPage#setFilterStyle(false)) and click Import
  • Assert the page is created and its content is displayed properly, with style information preserved compared to the filtered import

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/OfficeImporterIT.java

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