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 Nov 26, 2024
1 parent 8fe6475 commit b839068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b839068

Please sign in to comment.