From dfd6d0f20c1c8aa657b9dc154873f684a7aaa274 Mon Sep 17 00:00:00 2001 From: labkey-tchad Date: Wed, 1 Apr 2026 11:44:58 -0700 Subject: [PATCH 1/2] Fix ListTest crawler failure --- src/org/labkey/test/tests/list/ListTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/org/labkey/test/tests/list/ListTest.java b/src/org/labkey/test/tests/list/ListTest.java index d82d02ce62..9b1e664323 100644 --- a/src/org/labkey/test/tests/list/ListTest.java +++ b/src/org/labkey/test/tests/list/ListTest.java @@ -861,6 +861,11 @@ public void testCustomViews() customizeURLTest(); crossContainerLookupTest(); + + // Prevent crawler errors after the list is deleted + // A Query WebPart for a missing query contains links that will 404 + goToProjectHome(); + new PortalHelper(this).removeAllWebParts(); } /* Issue 23487: add regression coverage for batch insert into list with multiple errors @@ -1128,8 +1133,10 @@ private void filterTest() clickProject(PROJECT_VERIFY); PortalHelper portalHelper = new PortalHelper(this); - portalHelper.addQueryWebPart(null, "lists", LIST_NAME_COLORS, null); - portalHelper.addQueryWebPart(null, "lists", LIST_NAME_COLORS, null); + portalHelper.doInAdminMode(ph -> { + portalHelper.addQueryWebPart(null, "lists", LIST_NAME_COLORS, null); + portalHelper.addQueryWebPart(null, "lists", LIST_NAME_COLORS, null); + }); log("Test that the right filters are present for each type"); DataRegionTable region = new DataRegionTable("qwp3", getDriver()); From 40adee12d41a81099064d913e1a56db6dab461d9 Mon Sep 17 00:00:00 2001 From: labkey-tchad Date: Wed, 1 Apr 2026 11:45:40 -0700 Subject: [PATCH 2/2] Fix redirect error in AssayTransformMissingParentDirTest --- .../tests/assay/AssayTransformMissingParentDirTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/org/labkey/test/tests/assay/AssayTransformMissingParentDirTest.java b/src/org/labkey/test/tests/assay/AssayTransformMissingParentDirTest.java index d0979ba985..74cc69000c 100644 --- a/src/org/labkey/test/tests/assay/AssayTransformMissingParentDirTest.java +++ b/src/org/labkey/test/tests/assay/AssayTransformMissingParentDirTest.java @@ -19,6 +19,7 @@ import java.nio.file.AccessDeniedException; import java.nio.file.Files; import java.nio.file.Path; +import java.util.List; /** * 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 TestFileUtils.writeFile(transformFile, transformContent); // Create a General assay and add the transform by absolute path (not upload) - var protocolResponse = new GeneralAssayDesign(assayName).createAssay(getProjectName(), createDefaultConnection()); + var protocolResponse = new GeneralAssayDesign(assayName).setBatchFields(List.of(), false).createAssay(getProjectName(), createDefaultConnection()); var assayDesignerPage = ReactAssayDesignerPage.beginAt(this, getProjectName(), protocolResponse.getProtocolId(), - "general", getURL().toString()); - assayDesignerPage.goToBatchFields().removeAllFields(true); + "general", ""); // add by path so the absolute path is stored; this allows reproducing the missing parent dir scenario assayDesignerPage.addTransformScript(transformFile); assayDesignerPage.clickSave(); @@ -78,7 +78,6 @@ public void testMissingParentDirectoryRegression() throws Exception 1\tP1\timport after parent deleted """; - clickAndWait(Locator.linkWithText(assayName)); new AssayRunsPage(getDriver()).getTable().clickHeaderButtonAndWait("Import Data"); var importPage = new AssayImportPage(getDriver()); importPage.setNamedInputText("Name", "missingParentImport");