diff --git a/src/org/labkey/test/tests/filecontent/FileContentUploadTest.java b/src/org/labkey/test/tests/filecontent/FileContentUploadTest.java index e15f49c784..09c50d4fa3 100644 --- a/src/org/labkey/test/tests/filecontent/FileContentUploadTest.java +++ b/src/org/labkey/test/tests/filecontent/FileContentUploadTest.java @@ -353,8 +353,11 @@ public void testCalculateFileRootSize() throws Exception { String calculateFileRootSizeTask = "Calculate file root sizes"; goToAdminConsole().clickSystemMaintenance().runMaintenanceTask(calculateFileRootSizeTask); + Integer initialFileRootSize = getFileRootSize(); + switchToMainWindow(); + goToProjectHome(); File testFile = TestFileUtils.getSampleData("fileTypes/tsv_sample.tsv"); @@ -363,6 +366,9 @@ public void testCalculateFileRootSize() throws Exception goToAdminConsole().clickSystemMaintenance().runMaintenanceTask(calculateFileRootSizeTask); Integer finalFileRootSize = getFileRootSize(); + + switchToMainWindow(); + if (!checker().wrapAssertion(() -> Assertions.assertThat(finalFileRootSize) .as("Crawled file root size").isGreaterThan(initialFileRootSize))) {