This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-5bc7b7af-829d-4a05-b7ba-d1e6b1c1b64e XWIKI-25099 Open

Add automated test for "Replace Author when Deleting Users"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-cbe5b585-b48f-4d21-9ed3-c714a98e03f9 Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Replace Author when Deleting Users"
Issue Type: cid:jira-generated-image-avatar-5bc7b7af-829d-4a05-b7ba-d1e6b1c1b64e 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-f34ab6e0-2fa1-41a7-b32b-35c41f387aa9 Major
Reporter: Vincent Massol
Description:

The manual test is here: Replace Author when Deleting Users

Existing automated coverage

Related: XWIKI-18504 (closed) added the test for the delete-user warning, but not for the replacement of the author.

Missing automated coverage

  • In the delete confirmation modal of a user with Script right who last modified a page, select another user (or Admin) in the new author picker (#newAuthor; add a DeleteUserConfirmationModal method)
  • Click Delete, open the page created by U1 and assert its last author is the selected user
  • Optionally, select a user without Script right and assert the picker error message is shown

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

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