diff --git a/viscstudies/test/src/org/labkey/test/tests/viscstudies/CAVDStudyTest.java b/viscstudies/test/src/org/labkey/test/tests/viscstudies/CAVDStudyTest.java index a5fdd94d..f309ff6f 100644 --- a/viscstudies/test/src/org/labkey/test/tests/viscstudies/CAVDStudyTest.java +++ b/viscstudies/test/src/org/labkey/test/tests/viscstudies/CAVDStudyTest.java @@ -21,6 +21,7 @@ import org.labkey.test.BaseWebDriverTest; import org.labkey.test.Locator; import org.labkey.test.TestFileUtils; +import org.labkey.test.WebTestHelper; import org.labkey.test.categories.CustomModules; import org.labkey.test.pages.ImportDataPage; import org.labkey.test.params.FieldDefinition; @@ -511,12 +512,12 @@ private void doVerifyCrossContainerDatasetStatus() { setDatasetStatus(dataset, "Locked"); } - assertElementPresent(Locator.tagWithAttribute("img", "src", "/labkey/reports/icon_locked.png"), DATASETS.size()); + assertElementPresent(Locator.tagWithAttribute("img", "src", WebTestHelper.getContextPath() + "/reports/icon_locked.png"), DATASETS.size()); clickButton("Save Changes", defaultWaitForPage); // verify that we are back on the list view assertTextPresent("AllStudiesList", statusCol); // locked icon should now appear once for study2 and for all datasets in study3 - assertElementPresent(Locator.tagWithAttribute("img", "src", "/labkey/reports/icon_locked.png"), DATASETS.size() + 1); + assertElementPresent(Locator.tagWithAttribute("img", "src", WebTestHelper.getContextPath() + "/reports/icon_locked.png"), DATASETS.size() + 1); log("Verify data status exports to text as expected.");