From ffc0d306e734f260339bb05001ff5980ff482e05 Mon Sep 17 00:00:00 2001 From: Thomas Mortagne Date: Mon, 19 Aug 2024 19:03:20 +0200 Subject: [PATCH] XWIKI-21452: Macros info, success, warning and error are only distinguished by colors * update test --- .../test/it/org/xwiki/administration/test/ui/RegisterIT.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); }