diff --git a/xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui/RegisterIT.java b/xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui/RegisterIT.java index be9b7165de35..9aef8a22fd7a 100644 --- a/xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui/RegisterIT.java +++ b/xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui/RegisterIT.java @@ -346,7 +346,10 @@ void registerWikiSyntaxName(boolean isModal, boolean closedWiki, boolean withReg assertTrue(validateAndRegister(testUtils, isModal, registrationPage), String.format("isModal: %s close " + "wiki: %s withRegistrationConfig: %s", isModal, closedWiki, withRegistrationConfig)); - assertEquals(String.format("%s %s (%s): Registration successful.", firstName, lastName, + // TODO: looks like a pretty strange behavior, there might be a message box title missing somewhere + String messagePrefix = closedWiki ? "" : "Info "; + + assertEquals(String.format("%s%s %s (%s): Registration successful.", messagePrefix, firstName, lastName, AbstractRegistrationPage.JOHN_SMITH_USERNAME), ((RegistrationPage) registrationPage).getRegistrationSuccessMessage().orElseThrow()); }