Skip to content

Commit

Permalink
Don't fail on javascript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnr committed Dec 2, 2024
1 parent 18ed501 commit 48f90e0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void setup() {
this.webClient = MockMvcWebClientBuilder.mockMvcSetup(this.mvc)
.withDelegate(new LocalHostWebClient(this.environment)).build();
this.webClient.getCookieManager().clearCookies();
this.webClient.getOptions().setThrowExceptionOnScriptError(false);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public class OAuth2LoginApplicationTests {
@BeforeEach
void setup() {
this.webClient.getCookieManager().clearCookies();
this.webClient.getOptions().setThrowExceptionOnScriptError(false);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class Saml2LoginApplicationITests {
@BeforeEach
void setup() {
this.webClient.getCookieManager().clearCookies();
this.webClient.getOptions().setThrowExceptionOnScriptError(false);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class Saml2LoginApplicationITests {
@BeforeEach
void setup() {
this.webClient.getCookieManager().clearCookies();
this.webClient.getOptions().setThrowExceptionOnScriptError(false);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class Saml2LoginApplicationITests {
@BeforeEach
void setup() {
this.webClient.getCookieManager().clearCookies();
this.webClient.getOptions().setThrowExceptionOnScriptError(false);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ void setup() {
this.webClient = MockMvcWebClientBuilder.mockMvcSetup(this.mvc)
.withDelegate(new LocalHostWebClient(this.environment)).build();
this.webClient.getCookieManager().clearCookies();
this.webClient.getOptions().setThrowExceptionOnScriptError(false);
}

@Test
Expand Down

0 comments on commit 48f90e0

Please sign in to comment.