This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-b5c69a00-21cc-4cd0-be50-abfa66aef0e4 XWIKI-25120 Open

Add automated test for "Notifications count (below 21)"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-3a18e474-3563-4233-9d80-0537e261c5a5 Vincent Massol created this issue on 01/Oct/26 20:52
 
Summary: Add automated test for "Notifications count (below 21)"
Issue Type: cid:jira-generated-image-avatar-b5c69a00-21cc-4cd0-be50-abfa66aef0e4 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-439606da-f71d-4720-8df5-e7824ed35032 Major
Reporter: Vincent Massol
Description:

The manual test is here: Notifications count (below 21)

Existing automated coverage

  • NotificationsIT#simpleNotifications: Checks the badge value ("20+", then 20 after one is marked read, then 1) against the number of generated events, while the list shows only the first 10.
  • MentionsIT#documentBody: With a single notification, the badge (1) matches the number of unread entries in the list (1).

Missing automated coverage

  • Produce between 11 and 20 unread notifications for U1 and read the badge count.
  • Open the bell and click "Load older notifications" until it disappears.
  • Assert that the number of listed (unread) notifications equals the badge count.

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

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