[xwiki/xwiki-platform] 4218c6: [Misc] Perform REST actions as a given user and cr...
Branch: refs/heads/notifications-it-rest-fixture Home: https://github.com/xwiki/xwiki-platform Commit: 4218c60f62e4847b39a580560a8e07ecb28e6e7b https://github.com/xwiki/xwiki-platform/commit/4218c60f62e4847b39a580560a8e0... Author: Manuel Leduc <[email protected]> Date: 2026-09-10 (Thu, 10 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/TestUtils.java Log Message: ----------- [Misc] Perform REST actions as a given user and create users over REST * Add TestUtils.RestTestUtils#runAs, which performs any actions on the REST API with the provided credentials, so that a functional test can act as a given user without logging the browser in as that user. * Implement the existing #savePageAs on top of #runAs. * Add TestUtils.RestTestUtils#createUser, so that any functional test can create a user without going through the browser. Commit: fa87c17b322f0d1881f2b276ef43ed02f1d5fc8c https://github.com/xwiki/xwiki-platform/commit/fa87c17b322f0d1881f2b276ef43e... Author: Manuel Leduc <[email protected]> Date: 2026-09-10 (Thu, 10 Sep 2026) Changed paths: M 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 Log Message: ----------- [Misc] Replace the non-core UI interactions of NotificationsIT by REST calls * Create the two users of the fixture over REST instead of through the browser, and delete them over REST, so that the browser never has to log in as superadmin. * Produce the events the tests observe (page creations, updates, deletions and the comment) over REST as their author, so that only the user whose notification tray is asserted logs in: 13 browser logins and about 120 page loads are removed. * Add the NotificationDisplayerClass xobject over REST instead of going through the object editor. * Name the expected number of update events of compositeNotifications PAGE_UPDATE_COUNT, since the number of REST saves is what produces it. Compare: https://github.com/xwiki/xwiki-platform/compare/4218c60f62e4%5E...fa87c17b32... To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications