Skip to content

Commit dfd6d0f

Browse files
committed
Fix ListTest crawler failure
1 parent a12ab93 commit dfd6d0f

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/org/labkey/test/tests/list/ListTest.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,11 @@ public void testCustomViews()
861861

862862
customizeURLTest();
863863
crossContainerLookupTest();
864+
865+
// Prevent crawler errors after the list is deleted
866+
// A Query WebPart for a missing query contains links that will 404
867+
goToProjectHome();
868+
new PortalHelper(this).removeAllWebParts();
864869
}
865870

866871
/* Issue 23487: add regression coverage for batch insert into list with multiple errors
@@ -1128,8 +1133,10 @@ private void filterTest()
11281133
clickProject(PROJECT_VERIFY);
11291134

11301135
PortalHelper portalHelper = new PortalHelper(this);
1131-
portalHelper.addQueryWebPart(null, "lists", LIST_NAME_COLORS, null);
1132-
portalHelper.addQueryWebPart(null, "lists", LIST_NAME_COLORS, null);
1136+
portalHelper.doInAdminMode(ph -> {
1137+
portalHelper.addQueryWebPart(null, "lists", LIST_NAME_COLORS, null);
1138+
portalHelper.addQueryWebPart(null, "lists", LIST_NAME_COLORS, null);
1139+
});
11331140

11341141
log("Test that the right filters are present for each type");
11351142
DataRegionTable region = new DataRegionTable("qwp3", getDriver());

0 commit comments

Comments
 (0)