This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-273752cb-667b-474e-9b5a-19d724e1d571 XWIKI-25152 Open

Add automated test for "Restore a deleted page"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-df97faf0-0656-4ac2-8803-35ff400a0175 Vincent Massol created this issue on 01/Oct/26 20:52
 
Summary: Add automated test for "Restore a deleted page"
Issue Type: cid:jira-generated-image-avatar-273752cb-667b-474e-9b5a-19d724e1d571 Task
Affects Versions: 11.10.13
Assignee: Unassigned
Components: Development Issues only
Created: 01/Oct/26 20:52
Labels: testneeded
Priority: cid:jira-generated-image-static-major-b351e5d5-7f74-44dc-a32d-2edd2e8cfbbd Major
Reporter: Vincent Massol
Description:

The manual test is here: Restore a deleted page

Existing automated coverage

Missing automated coverage

  • Create a nested page (A.WebHome) and a terminal page (A.B), delete both
  • Open Page Index > Deleted Pages and click 'Restore' in the Actions column for each page (no page exists at that location, so no replace modal)
  • Assert each page exists again at its original reference with its original content, and is no longer listed in the Deleted Pages tab
  • Add a DeletedDocsPage#restoreDoc(docName) page-object method

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

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