1919import java .nio .file .AccessDeniedException ;
2020import java .nio .file .Files ;
2121import java .nio .file .Path ;
22+ import java .util .List ;
2223
2324/**
2425 * Issue 54156: Regression test to ensure a reasonable error message is shown when an assay design references
@@ -40,10 +41,9 @@ public void testMissingParentDirectoryRegression() throws Exception
4041 TestFileUtils .writeFile (transformFile , transformContent );
4142
4243 // Create a General assay and add the transform by absolute path (not upload)
43- var protocolResponse = new GeneralAssayDesign (assayName ).createAssay (getProjectName (), createDefaultConnection ());
44+ var protocolResponse = new GeneralAssayDesign (assayName ).setBatchFields ( List . of (), false ). createAssay (getProjectName (), createDefaultConnection ());
4445 var assayDesignerPage = ReactAssayDesignerPage .beginAt (this , getProjectName (), protocolResponse .getProtocolId (),
45- "general" , getURL ().toString ());
46- assayDesignerPage .goToBatchFields ().removeAllFields (true );
46+ "general" , "" );
4747 // add by path so the absolute path is stored; this allows reproducing the missing parent dir scenario
4848 assayDesignerPage .addTransformScript (transformFile );
4949 assayDesignerPage .clickSave ();
@@ -78,7 +78,6 @@ public void testMissingParentDirectoryRegression() throws Exception
7878 1\t P1\t import after parent deleted
7979 """ ;
8080
81- clickAndWait (Locator .linkWithText (assayName ));
8281 new AssayRunsPage (getDriver ()).getTable ().clickHeaderButtonAndWait ("Import Data" );
8382 var importPage = new AssayImportPage (getDriver ());
8483 importPage .setNamedInputText ("Name" , "missingParentImport" );
0 commit comments