Skip to content

Commit

Permalink
XWIKI-21452: Macros info, success, warning and error are only disting…
Browse files Browse the repository at this point in the history
…uished by colors

* update test
  • Loading branch information
tmortagne committed Aug 19, 2024
1 parent 2d462d4 commit ffc0d30
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit ffc0d30

Please sign in to comment.