Skip to content

Commit f46230a

Browse files
authored
Update some tests to not assume 'labkey' context path (#113)
1 parent 1334292 commit f46230a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

viscstudies/test/src/org/labkey/test/tests/viscstudies/CAVDStudyTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.labkey.test.BaseWebDriverTest;
2222
import org.labkey.test.Locator;
2323
import org.labkey.test.TestFileUtils;
24+
import org.labkey.test.WebTestHelper;
2425
import org.labkey.test.categories.CustomModules;
2526
import org.labkey.test.pages.ImportDataPage;
2627
import org.labkey.test.params.FieldDefinition;
@@ -511,12 +512,12 @@ private void doVerifyCrossContainerDatasetStatus()
511512
{
512513
setDatasetStatus(dataset, "Locked");
513514
}
514-
assertElementPresent(Locator.tagWithAttribute("img", "src", "/labkey/reports/icon_locked.png"), DATASETS.size());
515+
assertElementPresent(Locator.tagWithAttribute("img", "src", WebTestHelper.getContextPath() + "/reports/icon_locked.png"), DATASETS.size());
515516
clickButton("Save Changes", defaultWaitForPage);
516517
// verify that we are back on the list view
517518
assertTextPresent("AllStudiesList", statusCol);
518519
// locked icon should now appear once for study2 and for all datasets in study3
519-
assertElementPresent(Locator.tagWithAttribute("img", "src", "/labkey/reports/icon_locked.png"), DATASETS.size() + 1);
520+
assertElementPresent(Locator.tagWithAttribute("img", "src", WebTestHelper.getContextPath() + "/reports/icon_locked.png"), DATASETS.size() + 1);
520521

521522
log("Verify data status exports to text as expected.");
522523

0 commit comments

Comments
 (0)