Skip to content

Commit

Permalink
Static import
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-tchad committed Nov 9, 2023
1 parent 81ee2d8 commit 2d6b889
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
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 All @@ -47,6 +46,7 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.labkey.test.WebTestHelper.getContextPath;

@Category({CustomModules.class})
@BaseWebDriverTest.ClassTimeout(minutes = 20)
Expand Down Expand Up @@ -390,10 +390,10 @@ private void doVerifyCrossContainerDatasetStatus()
DATASETS.put(5004, "ELISATest");

String[][] statuses = {
{"Draft", WebTestHelper.getContextPath() + "/reports/icon_draft.png", "D"},
{"Final", WebTestHelper.getContextPath() + "/reports/icon_final.png", "F"},
{"Locked", WebTestHelper.getContextPath() + "/reports/icon_locked.png", "L"},
{"Unlocked", WebTestHelper.getContextPath() + "/reports/icon_unlocked.png", "U"}
{"Draft", getContextPath() + "/reports/icon_draft.png", "D"},
{"Final", getContextPath() + "/reports/icon_final.png", "F"},
{"Locked", getContextPath() + "/reports/icon_locked.png", "L"},
{"Unlocked", getContextPath() + "/reports/icon_unlocked.png", "U"}
};

String study2name = FOLDER_NAME2 + " Study";
Expand Down Expand Up @@ -513,12 +513,12 @@ private void doVerifyCrossContainerDatasetStatus()
{
setDatasetStatus(dataset, "Locked");
}
assertElementPresent(Locator.tagWithAttribute("img", "src", WebTestHelper.getContextPath() + "/reports/icon_locked.png"), DATASETS.size());
assertElementPresent(Locator.tagWithAttribute("img", "src", 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", WebTestHelper.getContextPath() + "/reports/icon_locked.png"), DATASETS.size() + 1);
assertElementPresent(Locator.tagWithAttribute("img", "src", getContextPath() + "/reports/icon_locked.png"), DATASETS.size() + 1);

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

Expand Down

0 comments on commit 2d6b889

Please sign in to comment.