4040import java .nio .file .Files ;
4141import java .util .Arrays ;
4242import java .util .List ;
43+ import java .util .logging .Level ;
4344import java .util .logging .Logger ;
4445import java .util .stream .Collectors ;
4546import org .htmlunit .Page ;
47+ import org .htmlunit .WebClient ;
4648import org .htmlunit .html .HtmlPage ;
4749import org .htmlunit .util .NameValuePair ;
4850import org .junit .Assume ;
5355import org .jvnet .hudson .test .BuildWatcher ;
5456import org .jvnet .hudson .test .Issue ;
5557import org .jvnet .hudson .test .JenkinsRule ;
58+ import org .jvnet .hudson .test .LoggerRule ;
5659import org .jvnet .hudson .test .recipes .LocalData ;
5760
5861public class FileParameterValueTest {
@@ -65,6 +68,9 @@ public class FileParameterValueTest {
6568 @ ClassRule
6669 public static BuildWatcher bw = new BuildWatcher ();
6770
71+ @ Rule
72+ public LoggerRule lr = new LoggerRule ().recordPackage (WebClient .class , Level .ALL );
73+
6874 public static final Logger LOGGER = Logger .getLogger (FileParameterValueTest .class .getName ());
6975
7076 @ Test
@@ -326,6 +332,8 @@ public void fileParameter_canStillUse_internalHierarchy() throws Exception {
326332
327333 // and reachable using request
328334 JenkinsRule .WebClient wc = j .createWebClient ();
335+ var options = wc .getOptions ();
336+ options .setJavaScriptEnabled (true );
329337
330338 LOGGER .info ("getting ws" );
331339 HtmlPage workspacePage = wc .goTo (p .getUrl () + "ws" );
0 commit comments