This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-78765dfc-a384-449e-ae94-2495cfa8af07 XWIKI-25144 Open

Add automated test for "Notifications Macro"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-bc9f49b4-d546-43e8-a09d-497d49282ecf Vincent Massol created this issue on 01/Oct/26 20:52
 
Summary: Add automated test for "Notifications Macro"
Issue Type: cid:jira-generated-image-avatar-78765dfc-a384-449e-ae94-2495cfa8af07 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-1b7a1e0b-4228-423a-978e-637ffbf0894f Major
Reporter: Vincent Massol
Description:

The manual test is here: Notifications Macro

Existing automated coverage

Missing automated coverage

  • U1 has notifications on and watches the whole wiki; as Admin create, update and comment pages
  • As U1 create a page with the notifications macro and useUserPreferences=true (inserted via CKEditor Insert > Other Macros)
  • Assert the macro lists the same events as the notification tray
  • Mark an event as read in the page macro and refresh
  • Assert the event is shown as read in the macro and the tray unread count decreased

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).