This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-87590a79-8298-4d46-abcf-7d6f4d29d59e XWIKI-25148 Open

Add automated test for "Delete Annotation"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d82c66e4-8c23-4c7b-8e43-c4876247d2c4 Vincent Massol created this issue on 01/Oct/26 20:52
 
Summary: Add automated test for "Delete Annotation"
Issue Type: cid:jira-generated-image-avatar-87590a79-8298-4d46-abcf-7d6f4d29d59e Task
Affects Versions: 11.10.13
Assignee: Unassigned
Components: Development Issues only
Created: 01/Oct/26 20:52
Labels: testneeded
Priority: cid:jira-generated-image-static-major-26b77523-b123-401c-bc37-36c99ef52c41 Major
Reporter: Vincent Massol
Description:

The manual test is here: Delete Annotation

Existing automated coverage

  • AnnotationsIT#addEditAndDeleteAnnotations: Step 1 (adds annotations with CTRL+M in view mode) and asserts the Comments tab shows a Delete button for each annotation; deletion is done through the annotation bubble, not the Comments tab, and the test never asserts the annotation is gone
  • InplaceEditWithAnnotationsIT#editInplaceWithAnnotations: Steps 2-4 and the expected result (Comments tab trash icon + confirm, annotation count drops) but only while the page is in in-place edit mode and on annotations created through REST

Missing automated coverage

  • In view mode, add an annotation with CTRL+M (AnnotatableViewPage#addAnnotation)
  • Open the Comments tab and delete the annotation comment with the trash icon + 'Delete' confirmation (CommentsTab#deleteCommentByID)
  • Assert the comment is no longer listed in the Comments tab
  • Reload the page with annotations shown and assert the annotation highlight is gone (getAnnotationCount decreased, no highlight for the annotated text)
  • Also assert the annotation is gone after the existing bubble deletions in addEditAndDeleteAnnotations

Suggested location: xwiki-platform-core/xwiki-platform-annotation/xwiki-platform-annotation-test/xwiki-platform-annotation-test-docker/src/test/it/org/xwiki/annotation/test/ui/AnnotationsIT.java

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