This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-7b278ac1-90d4-4bc7-88bb-52e580d21a54 XWIKI-25156 Open

Add automated test for "Retrieve Tag"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-3d794bda-e34b-4745-841d-ec1a7f9779d0 Vincent Massol created this issue on 01/Oct/26 20:52
 
Summary: Add automated test for "Retrieve Tag"
Issue Type: cid:jira-generated-image-avatar-7b278ac1-90d4-4bc7-88bb-52e580d21a54 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-1d263e63-bbb6-4dbe-b465-37855858e2a7 Major
Reporter: Vincent Massol
Description:

The manual test is here: Retrieve Tag

Existing automated coverage

  • TagIT#addRemoveTag: Step 1: adding tags to a page through the UI
  • TagIT#getAllTags: Tags of a page are returned by $xwiki.tag.getAllTags() (script API, not Main.Tags)
  • TagCloudPageTest#withTags: Unit level: the tag cloud lists all tags with links to Main.Tags?do=viewTag, from mocked query results

Missing automated coverage

  • Add distinct tags to a nested page (X.WebHome) and a terminal page (X.Y)
  • Go to Main.Tags and assert the tag cloud contains all those tags
  • Optionally click each tag and assert the viewTag page lists the right page

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

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