This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-45ef34e5-af50-4060-806b-111a6e684c4a XWIKI-25121 Open

Add automated test for "Like and Unlike a page"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-65dd4df2-6d9f-4e96-823f-b05ca1dd8fcf Vincent Massol created this issue on 01/Oct/26 20:52
 
Summary: Add automated test for "Like and Unlike a page"
Issue Type: cid:jira-generated-image-avatar-45ef34e5-af50-4060-806b-111a6e684c4a 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-0d281791-58d1-471c-8a5f-fdda7f77f1a8 Major
Reporter: Vincent Massol
Description:

The manual test is here: Like and Unlike a page

Existing automated coverage

  • LikeIT#likeUnlikeDefaultConfiguration: On the main wiki: Like on a WebHome page increments the counter, Unlike decrements it and the value persists after a reload; a terminal page (SubPage) is liked and its counter checked.

Missing automated coverage

  • On the main wiki, unlike the terminal page and assert that its counter decreases.
  • On a subwiki, like a WebHome page and a terminal page and assert that each counter increases.
  • On the subwiki, click the button again on both pages and assert that each counter decreases.

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

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