[xwiki/xwiki-platform] 53a588: [Misc] Try fixing login flickering in TestUtils (#...
Branch: refs/heads/backport/stable-18.4.x/pr-5985 Home: https://github.com/xwiki/xwiki-platform Commit: 53a58893d80218bb9a336f537686fa1b2be63b10 https://github.com/xwiki/xwiki-platform/commit/53a58893d80218bb9a336f537686f... Author: Michael Hamann <[email protected]> Date: 2026-07-27 (Mon, 27 Jul 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] Try fixing login flickering in TestUtils (#5985) * Unload the current page before performing any login request, cancelling any before-unload requests. * Catch when updating of the user properties fails due to an invalid CSRF token instead of failing silently. * Always re-cache the CSRF token after a login call, even if the user was already logged in to avoid follow-up failures after a wrong CSRF token getting cached. * Don't navigate to a blank page after login as it's not needed and just hides potential error messages but always navigate to the asked page even if the user was already logged in to avoid previous state influencing the current test. * Use a logger consistently instead of printing to stdout as we expect a logger setup in UI tests. Co-authored-by: Claude Opus 5 (1M context) <[email protected]> (cherry picked from commit 6a2e541757f423a5fa3d5d4241558f7b8bad3ad8) To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications