@@ -296,6 +296,40 @@ public void verifySourceFolderDefaultState() throws Exception {
296296 HtmlInput srcFolderPath = page .getElementByName ("_.srcFolderPath" );
297297 assertEquals ("" , srcFolderPath .getTextContent ());
298298 }
299+
300+ /*
301+ * Test to verify text box shows up on SelectBy option click and text is empty.
302+ */
303+
304+ @ Test
305+ public void verifySelectByFolderDefaultState () throws Exception {
306+ this .buildWrapper .setMatlabRootFolder (getMatlabroot ("R2017a" ));
307+ project .getBuildWrappersList ().add (this .buildWrapper );
308+ project .getBuildersList ().add (this .testBuilder );
309+ HtmlPage page = jenkins .createWebClient ().goTo ("job/test0/configure" );
310+ HtmlCheckBoxInput sourceFolder = page .getElementByName ("_.selectbyFolder" );
311+ sourceFolder .click ();
312+ WebAssert .assertElementPresentByXPath (page , "//input[@name=\" _.testFolders\" ]" );
313+ HtmlInput srcFolderPath = page .getElementByName ("_.testFolders" );
314+ assertEquals ("" , srcFolderPath .getTextContent ());
315+ }
316+
317+ /*
318+ * Test to verify text box shows up on SelectByTag option click and text is empty.
319+ */
320+
321+ @ Test
322+ public void verifySelectByTagDefaultState () throws Exception {
323+ this .buildWrapper .setMatlabRootFolder (getMatlabroot ("R2017a" ));
324+ project .getBuildWrappersList ().add (this .buildWrapper );
325+ project .getBuildersList ().add (this .testBuilder );
326+ HtmlPage page = jenkins .createWebClient ().goTo ("job/test0/configure" );
327+ HtmlCheckBoxInput sourceFolder = page .getElementByName ("_.selectByTag" );
328+ sourceFolder .click ();
329+ WebAssert .assertElementPresentByXPath (page , "//input[@name=\" _.testTag\" ]" );
330+ HtmlInput srcFolderPath = page .getElementByName ("_.testTag" );
331+ assertEquals ("" , srcFolderPath .getTextContent ());
332+ }
299333
300334 /*
301335 * Test to verify only specific test atrtifact are passed.
0 commit comments