This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-83490291-718d-4bd2-94b5-ca5607d70398 XWIKI-25111 Open

Add automated test for "Create page"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2ba7ced3-bdb7-4711-8137-1f70a94ed8e0 Vincent Massol created this issue on 01/Oct/26 20:51
 
Summary: Add automated test for "Create page"
Issue Type: cid:jira-generated-image-avatar-83490291-718d-4bd2-94b5-ca5607d70398 Task
Affects Versions: 11.10.13
Assignee: Unassigned
Components: Development Issues only
Created: 01/Oct/26 20:51
Labels: testneeded
Priority: cid:jira-generated-image-static-major-13a74d4f-44b1-41fc-8301-cf04bfdb38a7 Major
Reporter: Vincent Massol
Description:

The manual test is here: Create page

Existing automated coverage

  • NotificationsIT#displayNotificationsOnSubwikis: Creates a page, then displays a page holding exactly the macro call of the Dashboard activity gadget (the notifications macro with useUserPreferences=false and displayOwnEvents=true) and asserts that the created page ("Test Notif Main") is listed. The event type of the entry is not asserted.
  • NotificationsIT#ownEventNotifications: A page created through the UI shows up as "created by <user>" for its creator, but in the notification tray, not in the activity stream.

Missing automated coverage

  • Log in as a user and create a page through the UI.
  • Go to the Dashboard (Dashboard.WebHome) and wait for its activity (notifications macro) gadget to load.
  • Assert that the gadget lists an entry for the new page.
  • Assert that this entry is a creation event: NotificationsContainerElement#getNotificationType is "create" and the description is "created by <user>".

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