Skip to content

Commit 40adee1

Browse files
committed
Fix redirect error in AssayTransformMissingParentDirTest
1 parent dfd6d0f commit 40adee1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/org/labkey/test/tests/assay/AssayTransformMissingParentDirTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.nio.file.AccessDeniedException;
2020
import java.nio.file.Files;
2121
import 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\tP1\timport 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

Comments
 (0)