diff --git a/flow-server/src/main/java/com/vaadin/flow/server/SystemMessages.java b/flow-server/src/main/java/com/vaadin/flow/server/SystemMessages.java
index 50a30ac7800..87e74571e75 100644
--- a/flow-server/src/main/java/com/vaadin/flow/server/SystemMessages.java
+++ b/flow-server/src/main/java/com/vaadin/flow/server/SystemMessages.java
@@ -31,21 +31,19 @@
*
sessionExpiredURL = null
* sessionExpiredNotificationEnabled = false
* sessionExpiredCaption = "Session Expired"
- * sessionExpiredMessage = "Take note of any unsaved data, and
- * click here or press ESC key to continue."
+ * sessionExpiredMessage = "Take note of any unsaved data, and click
+ * here or press ESC key to continue."
* internalErrorURL = null
* internalErrorNotificationEnabled = true
* internalErrorCaption = "Internal error"
- * internalErrorMessage = "Please notify the administrator.
- * Take note of any unsaved data, and click here or press ESC to
- * continue."
+ * internalErrorMessage = "Please notify the administrator. Take note
+ * of any unsaved data, and click here or press ESC to continue."
* cookiesDisabledURL = null
* cookiesDisabledNotificationEnabled = true
* cookiesDisabledCaption = "Cookies disabled"
* cookiesDisabledMessage = "This application requires cookies to
- * function.
- * Please enable cookies in your browser and click here or press ESC to
- * try again.
+ * function. Please enable cookies in your browser and click here or press ESC
+ * to try again.
*
*
* @since 1.0
@@ -54,17 +52,17 @@ public class SystemMessages implements Serializable {
protected String sessionExpiredURL = null;
protected boolean sessionExpiredNotificationEnabled = false;
protected String sessionExpiredCaption = "Session Expired";
- protected String sessionExpiredMessage = "Take note of any unsaved data, and click here or press ESC key to continue.";
+ protected String sessionExpiredMessage = "Take note of any unsaved data, and click here or press ESC key to continue.";
protected String internalErrorURL = null;
protected boolean internalErrorNotificationEnabled = true;
protected String internalErrorCaption = "Internal error";
- protected String internalErrorMessage = "Please notify the administrator.
Take note of any unsaved data, and click here or press ESC to continue.";
+ protected String internalErrorMessage = "Please notify the administrator. Take note of any unsaved data, and click here or press ESC to continue.";
protected String cookiesDisabledURL = null;
protected boolean cookiesDisabledNotificationEnabled = true;
protected String cookiesDisabledCaption = "Cookies disabled";
- protected String cookiesDisabledMessage = "This application requires cookies to function.
Please enable cookies in your browser and click here or press ESC to try again.";
+ protected String cookiesDisabledMessage = "This application requires cookies to function. Please enable cookies in your browser and click here or press ESC to try again.";
/**
* Private constructor
diff --git a/flow-tests/test-root-context/src/test/java/com/vaadin/flow/uitest/ui/LogoutIT.java b/flow-tests/test-root-context/src/test/java/com/vaadin/flow/uitest/ui/LogoutIT.java
index d83f8e27e46..7ce2d9ecf7a 100644
--- a/flow-tests/test-root-context/src/test/java/com/vaadin/flow/uitest/ui/LogoutIT.java
+++ b/flow-tests/test-root-context/src/test/java/com/vaadin/flow/uitest/ui/LogoutIT.java
@@ -34,7 +34,7 @@ public void setLocationWithNotificationDisabled_noErrorMessages() {
// Strings defined in com.vaadin.flow.server.SystemMessages
checkLogsForErrors(
msg -> msg.contains("Session Expired") || msg.contains(
- "Take note of any unsaved data, and click here or press ESC key to continue."));
+ "Take note of any unsaved data, and click here or press ESC key to continue."));
// There can't be any error dialog
Assert.assertFalse(isElementPresent(By.className("v-system-error")));
diff --git a/flow-tests/test-root-context/src/test/java/com/vaadin/flow/uitest/ui/LogoutWithNotificationIT.java b/flow-tests/test-root-context/src/test/java/com/vaadin/flow/uitest/ui/LogoutWithNotificationIT.java
index 9d8d7908cc4..8f2b050a9bf 100644
--- a/flow-tests/test-root-context/src/test/java/com/vaadin/flow/uitest/ui/LogoutWithNotificationIT.java
+++ b/flow-tests/test-root-context/src/test/java/com/vaadin/flow/uitest/ui/LogoutWithNotificationIT.java
@@ -39,8 +39,8 @@ public void setLocationWithNotificationEnabled_noErrorMessages() {
// There can be "Session Expired" message because of heartbeat
// Strings defined in com.vaadin.flow.server.SystemMessages
checkLogsForErrors(msg -> msg.contains("Session Expired")
- || msg.contains("Take note of any unsaved data, and click "
- + "here or press ESC key to continue."));
+ || msg.contains("Take note of any unsaved data, and click "
+ + "here or press ESC key to continue."));
// There can't be any error dialog
Assert.assertFalse(isElementPresent(By.className("v-system-error")));