This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-9c9b218a-79cc-4030-9b0d-96240d19e135 XWIKI-25110 Open

Add automated test for "Rename or move an extension page"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-4a1a8ff5-f1f1-405f-a3fb-e341e2cd35d0 Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Rename or move an extension page"
Issue Type: cid:jira-generated-image-avatar-9c9b218a-79cc-4030-9b0d-96240d19e135 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-a2bd86c5-84f3-429b-aefc-a07531fd9929 Major
Reporter: Vincent Massol
Description:

The manual test is here: Rename or move an extension page

Existing automated coverage

  • DocumentsDeletingListenerTest#onEvent: Unit test: when a refactoring job (delete, or the source deletion of a move/rename) touches pages of an installed extension, an ExtensionBreakingQuestion is asked and only the selected pages are processed.
  • ExtensionBreakingQuestionTest#get: Unit test of the question model (pages grouped by extension, selection).
  • RenamePageIT#renamePageWithUsedClass: Same job question UI (JobQuestionPane: tree selection, confirm, cancel) during a rename, but for the "used XClass" question, not the extension one.

Missing automated coverage

  • Go to a page of an installed XAR extension (e.g. Help/Applications/Contributors/Charlie Chaplin), open More Actions > Move / Rename, set a new title, click Rename
  • Assert the question "You are about to rename pages that belong to extensions." is displayed (JobQuestionPane#getQuestionTitle)
  • Select the page in the question tree, click Confirm, and assert the rename is done (new page exists, old one moved)
  • Also check that cancelling the question leaves the page in place

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

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