Skip to content

Commit

Permalink
Update some tests to not assume 'labkey' context path (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-tchad authored Mar 30, 2023
1 parent 1334292 commit f46230a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.");

Expand Down

0 comments on commit f46230a

Please sign in to comment.