This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-ccd8002f-b668-43fd-a78e-f67c3cfa5997 XWIKI-25080 Open

Add automated test for "Import Office File"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-0a78cede-5b99-4160-88d4-43a249828237 Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Import Office File"
Issue Type: cid:jira-generated-image-avatar-ccd8002f-b668-43fd-a78e-f67c3cfa5997 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-5fb02d0a-311e-4012-a16a-f7ce9a373ada Major
Reporter: Vincent Massol
Description:

The manual test is here: Import Office File

Existing automated coverage

  • OfficeImporterIT#verifyImport: Office server conversion of doc/ppt/xls/odt/odp files through the Office Importer application UI, with assertions on the imported content and attachments.

Missing automated coverage

  • With the office server started, edit a page in CKEditor and open Insert > Import Office File (needs a page object for the Insert menu and the import dialog).
  • Upload/select an office document (e.g. msoffice.97-2003/Test.doc) and click Import; assert its text is inserted in the editor.
  • Save & View and assert "This is a test document." is in the view content.

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).