Skip to content

Commit 21a935b

Browse files
authored
Well table contextual role support (#2529)
1 parent 1956403 commit 21a935b

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/org/labkey/test/tests/SampleTypeLinkToStudyTest.java

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.labkey.test.tests;
22

33
import org.jetbrains.annotations.Nullable;
4+
import org.junit.Assert;
45
import org.junit.Before;
56
import org.junit.BeforeClass;
67
import org.junit.Test;
@@ -145,6 +146,14 @@ public void testLinkToStudy()
145146
log("Verifying the linked sample type in study");
146147
goToProjectHome(VISIT_BASED_STUDY);
147148
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);
148157
stopImpersonating();
149158

150159
log("Verifying log entries");
@@ -862,10 +871,10 @@ public List<String> getAssociatedModules()
862871
protected void doCleanup(boolean afterTest) throws TestTimeoutException
863872
{
864873
_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);
870879
}
871880
}

0 commit comments

Comments
 (0)