From bc3811ee189a02613643f84a49c25b7aaa0351f4 Mon Sep 17 00:00:00 2001 From: Steve Riesenberg <5248162+sjohnr@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:32:59 -0600 Subject: [PATCH] Don't fail on javascript errors --- .../src/integTest/java/example/Saml2JavaConfigurationITests.java | 1 + .../login-logout/src/integTest/java/example/Saml2XmlITests.java | 1 + 2 files changed, 2 insertions(+) diff --git a/servlet/java-configuration/saml2/login/src/integTest/java/example/Saml2JavaConfigurationITests.java b/servlet/java-configuration/saml2/login/src/integTest/java/example/Saml2JavaConfigurationITests.java index d3f3985cc..f68e395c2 100644 --- a/servlet/java-configuration/saml2/login/src/integTest/java/example/Saml2JavaConfigurationITests.java +++ b/servlet/java-configuration/saml2/login/src/integTest/java/example/Saml2JavaConfigurationITests.java @@ -69,6 +69,7 @@ void setup() { this.webClient = MockMvcWebClientBuilder.mockMvcSetup(this.mvc) .withDelegate(new LocalHostWebClient(this.environment)) .build(); + this.webClient.getOptions().setThrowExceptionOnScriptError(false); this.webClient.getCookieManager().clearCookies(); } diff --git a/servlet/xml/java/saml2/login-logout/src/integTest/java/example/Saml2XmlITests.java b/servlet/xml/java/saml2/login-logout/src/integTest/java/example/Saml2XmlITests.java index 4f6f1d214..ffe404ff8 100644 --- a/servlet/xml/java/saml2/login-logout/src/integTest/java/example/Saml2XmlITests.java +++ b/servlet/xml/java/saml2/login-logout/src/integTest/java/example/Saml2XmlITests.java @@ -68,6 +68,7 @@ void setup() { this.webClient = MockMvcWebClientBuilder.mockMvcSetup(this.mvc) .withDelegate(new LocalHostWebClient(this.environment)) .build(); + this.webClient.getOptions().setThrowExceptionOnScriptError(false); this.webClient.getCookieManager().clearCookies(); }