This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-50da1b91-f35b-4e13-a694-6751cb350b94 XWIKI-25083 Open

Add automated test for "Insert Office Document Viewer Macro"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6470b637-a9dc-40d5-bd92-acc1512d67ac Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Insert Office Document Viewer Macro"
Issue Type: cid:jira-generated-image-avatar-50da1b91-f35b-4e13-a694-6751cb350b94 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-9df63909-0f97-40ab-b8d2-9896b4722344 Major
Reporter: Vincent Massol
Description:

The manual test is here: Insert Office Document Viewer Macro

Existing automated coverage

  • OfficeMacroIT#viewAttachment: An office macro referencing an office attachment (page content created by the fixture) renders the document content in view mode.

Missing automated coverage

  • With the office server connected and an office attachment on the page, edit the page in CKEditor and open Insert (the plus icon) > Other Macros.
  • Search "Office Document Viewer", select it, fill the attachment reference and Submit.
  • Save & View and assert the office document content is displayed.

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

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