diff --git a/config/src/test/groovy/org/springframework/security/config/annotation/web/configurers/DefaultLoginPageConfigurerTests.groovy b/config/src/test/groovy/org/springframework/security/config/annotation/web/configurers/DefaultLoginPageConfigurerTests.groovy
index 25f10dbba7..32b7188b0f 100644
--- a/config/src/test/groovy/org/springframework/security/config/annotation/web/configurers/DefaultLoginPageConfigurerTests.groovy
+++ b/config/src/test/groovy/org/springframework/security/config/annotation/web/configurers/DefaultLoginPageConfigurerTests.groovy
@@ -53,15 +53,33 @@ public class DefaultLoginPageConfigurerTests extends BaseSpringSpec {
request.requestURI = "/login"
springSecurityFilterChain.doFilter(request,response,chain)
then:
- response.getContentAsString() == """
+
+"""
when: "fail to log in"
super.setup()
request.servletPath = "/login"
@@ -77,15 +95,33 @@ public class DefaultLoginPageConfigurerTests extends BaseSpringSpec {
request.queryString = "error"
springSecurityFilterChain.doFilter(request,response,chain)
then:
- response.getContentAsString() == """
Login Page
-
Your login attempt was not successful, try again.
Reason: Bad credentials
Login with Username and Password
"""
+ response.getContentAsString() == """
+
+
+
+
+
+
+
Please sign in
+
+
+
+
+
+
+"""
when: "login success"
super.setup()
request.servletPath = "/login"
@@ -106,15 +142,33 @@ public class DefaultLoginPageConfigurerTests extends BaseSpringSpec {
request.method = "GET"
springSecurityFilterChain.doFilter(request,response,chain)
then: "sent to default success page"
- response.getContentAsString() == """
Login Page
-
You have been logged out
Login with Username and Password
"""
+ response.getContentAsString() == """
+
+
+
+
+
+
+
Please sign in
+
+
+
+
+
+
+"""
}
@Configuration
@@ -191,16 +245,34 @@ public class DefaultLoginPageConfigurerTests extends BaseSpringSpec {
request.requestURI = "/login"
springSecurityFilterChain.doFilter(request,response,chain)
then:
- response.getContentAsString() == """
Login Page
-
Login with Username and Password
"""
+ response.getContentAsString() == """
+
+
+
+
+
+
+
Please sign in
+
+
+
+
+
+
+"""
}
@Configuration
@@ -224,13 +296,29 @@ public class DefaultLoginPageConfigurerTests extends BaseSpringSpec {
request.requestURI = "/login"
springSecurityFilterChain.doFilter(request,response,chain)
then:
- response.getContentAsString() == """
Login PageLogin with OpenID Identity