This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-f11ac6ed-c90f-483e-8151-da8498718bb6 XWIKI-25100 Open

Add automated test for "Restore A Page"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6d5a9568-1411-4966-9643-e8bb34be5ada Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Restore A Page"
Issue Type: cid:jira-generated-image-avatar-f11ac6ed-c90f-483e-8151-da8498718bb6 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-e8ef1fc5-f3b5-4361-adf5-d03b1b8498d0 Major
Reporter: Vincent Massol
Description:

The manual test is here: Restore A Page

Existing automated coverage

Missing automated coverage

  • As a simple user with delete right, create P1 with content and delete it
  • Navigate to P1 and assert "The requested page could not be found.", the Deleter and a Deletion Date (add a DeletedPageEntry getter for the date)
  • Click Restore in the Actions column as that same user and assert P1 is restored with its previous content

Suggested location: xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/RecycleBinIT.java

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