This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-7f1e2a47-315a-41f9-a3ab-5b472eac2124 XWIKI-25107 Open

Add automated test for "Export Import a document with history"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-5891e921-347c-4d50-9ede-8e79efee8490 Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Export Import a document with history"
Issue Type: cid:jira-generated-image-avatar-7f1e2a47-315a-41f9-a3ab-5b472eac2124 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-4cdb8143-0793-4c5d-97b1-fc9319fd58c4 Major
Reporter: Vincent Massol
Description:

The manual test is here: Export Import a document with history

Existing automated coverage

Missing automated coverage

  • Create nested page 1/2 and save several versions (add text, remove text, add a table, add a link)
  • Export it with bin/export/1/2/WebHome?format=xar&name=1.2.WebHome&pages=xwiki%3A1.2.WebHome&history=true
  • Create a subwiki and import the exported XAR from its Administer Wiki > Content > Import with "Replace the page history with the history from the package"
  • Assert the imported page history in the subwiki has the same versions and comments as the original

Suggested location: xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui/XARImportIT.java

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