Details
-
Task
-
Resolution: Invalid
-
Major
-
None
-
11.10.13
-
Unknown
-
Description
The manual test is here: Attach A File Twice from More Actions Menu
Existing automated coverage
- AttachmentIT#uploadAttachments: Simple user uploads a file, hides the upload status, re-uploads a file with the same name from the Attachments tab and asserts version 1.2 and its content, then the history lists 1.1 and 1.2; the More Actions > Attachments viewer is only used to delete
- MoveAttachmentIT#moveAttachment: Clicks the version links of the attachment history page (AttachmentHistoryPage#geAttachmentContent) and asserts versions 1.1 and 1.2 serve their own content
- DownloadAttachmentRevisionIT#downloadRevision: Two uploads of the same file name; revisions 1.1 and 1.2 are both downloadable with their own content
Related: XWIKI-25091 (closed): "Attach Same File Twice": same-file re-upload from the Attachments tab, fixed in AttachmentIT#uploadAttachments; not from the More Actions viewer.
Related: XWIKI-25094 (closed): "Add and delete an attachment": added the More Actions > Attachments viewer, but only for deleting.
Missing automated coverage
- On the wiki home page (Main.WebHome) or a test page, open More Actions > Attachments (AttachmentsViewPage#openAttachmentsViewerFromMoreActions) and assert viewer=attachments
- Upload a file from the attachments viewer and assert it is listed with version 1.1
- Refresh the page, upload the same file name again from the viewer and assert the latest version is 1.2
- Open the attachment history and click both version links; assert each serves its own 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/AttachmentIT.java
Found by comparing the most-run manual tests (XWiki 16.x-18.x runs) against the automated tests on master (7c8ae46f525).