This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-653f420e-0eda-401d-b1f8-53cb124c0be6 XWIKI-25091 Open

Add automated test for "Attach Same File Twice"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a6f04b0b-faea-4ffe-aee4-cc3ef3591562 Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Attach Same File Twice"
Issue Type: cid:jira-generated-image-avatar-653f420e-0eda-401d-b1f8-53cb124c0be6 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-9de95457-a387-4903-817d-684179b05217 Major
Reporter: Vincent Massol
Description:

The manual test is here: Attach Same File Twice

Existing automated coverage

  • AttachmentIT#uploadAttachments: uploads from the Attachments tab, clicks Hide upload status, re-uploads a file with the same name and asserts the latest version becomes 1.2 and its link serves the new content
  • DownloadAttachmentRevisionIT#downloadRevision: two uploads of the same file name; revisions 1.1 and 1.2 are both downloadable with their own content
  • MoveAttachmentIT#moveAttachment: after two uploads of the same file name and a move, clicks the version link in the Attachments pane and asserts the history page lists 1.1 and 1.2 with size, author and content (no date)

Missing automated coverage

  • Upload a file from the Attachments tab, click "Hide upload status", upload the same file again
  • Click the "1.2" version link (AttachmentsPane#goToAttachmentHistory) without any move
  • Assert the history lists versions 1.1 and 1.2, each with its size, author and date (add an AttachmentHistoryPage getter for the date column)

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).