From b839068efb4d0ec437ec940d077f0bcadc412583 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 301a7f2f..89873857 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 bf6c07be..aa3f6ba6 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(); }