|
1 | 1 | package org.labkey.test.tests;
|
2 | 2 |
|
3 | 3 | import org.jetbrains.annotations.Nullable;
|
| 4 | +import org.junit.Assert; |
4 | 5 | import org.junit.Before;
|
5 | 6 | import org.junit.BeforeClass;
|
6 | 7 | import org.junit.Test;
|
@@ -145,6 +146,14 @@ public void testLinkToStudy()
|
145 | 146 | log("Verifying the linked sample type in study");
|
146 | 147 | goToProjectHome(VISIT_BASED_STUDY);
|
147 | 148 | clickAndWait(Locator.linkWithText(SAMPLE_TYPE1));
|
| 149 | + |
| 150 | + // verify that the isPlated field renders correctly |
| 151 | + _customizeViewsHelper.openCustomizeViewPanel(); |
| 152 | + _customizeViewsHelper.addColumn("IsPlated"); |
| 153 | + _customizeViewsHelper.applyCustomView(); |
| 154 | + table = new DataRegionTable("Dataset", getDriver()); |
| 155 | + List<String> values = table.getColumnDataAsText("IsPlated"); |
| 156 | + Assert.assertEquals("Invalid isPlated row values", List.of("Not Plated", "Not Plated"), values); |
148 | 157 | stopImpersonating();
|
149 | 158 |
|
150 | 159 | log("Verifying log entries");
|
@@ -862,10 +871,10 @@ public List<String> getAssociatedModules()
|
862 | 871 | protected void doCleanup(boolean afterTest) throws TestTimeoutException
|
863 | 872 | {
|
864 | 873 | _userHelper.deleteUsers(false, READER_USER);
|
865 |
| - _containerHelper.deleteProject(SAMPLE_TYPE_PROJECT, afterTest); |
866 |
| - _containerHelper.deleteProject(VISIT_BASED_STUDY, afterTest); |
867 |
| - _containerHelper.deleteProject(DATE_BASED_STUDY, afterTest); |
868 |
| - _containerHelper.deleteProject(SAMPLE_TYPE_PROJECT + " Study 1", afterTest); |
869 |
| - _containerHelper.deleteProject(SAMPLE_TYPE_PROJECT + " Study 2", afterTest); |
| 874 | + _containerHelper.deleteProject(SAMPLE_TYPE_PROJECT, false); |
| 875 | + _containerHelper.deleteProject(VISIT_BASED_STUDY, false); |
| 876 | + _containerHelper.deleteProject(DATE_BASED_STUDY, false); |
| 877 | + _containerHelper.deleteProject(SAMPLE_TYPE_PROJECT + " Study 1", false); |
| 878 | + _containerHelper.deleteProject(SAMPLE_TYPE_PROJECT + " Study 2", false); |
870 | 879 | }
|
871 | 880 | }
|
0 commit comments