This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-bfcb73eb-34ab-410b-9308-521f803d8077 XWIKI-25094 Open

Add automated test for "Add and delete an attachment"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-16c0f2d7-a1a2-44ff-b68d-1a33d5b9bd8f Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Add and delete an attachment"
Issue Type: cid:jira-generated-image-avatar-bfcb73eb-34ab-410b-9308-521f803d8077 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-16ea1af6-f31f-445c-bfb7-184e6212fda3 Major
Reporter: Vincent Massol
Description:

The manual test is here: Add and delete an attachment

Existing automated coverage

  • AttachmentIT#uploadAttachments: on a nested (WebHome) test page, uploads attachments from the Attachments tab, deletes one with its Delete button and the confirmation modal, and asserts it is gone, also after reload

Missing automated coverage

  • On a nested page (WebHome) and on a terminal page, upload an attachment from the Attachments tab
  • Open the More Actions menu and click "Attachments" (id tmAttachments, needs a page-object method); assert the attachments viewer (viewer=attachments) is displayed
  • Click the Delete button of the attachment, confirm with "Delete" and assert the attachment is removed

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

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