Skip to content

Well table contextual role support #2529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions src/org/labkey/test/tests/SampleTypeLinkToStudyTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.labkey.test.tests;

import org.jetbrains.annotations.Nullable;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
Expand Down Expand Up @@ -145,6 +146,14 @@ public void testLinkToStudy()
log("Verifying the linked sample type in study");
goToProjectHome(VISIT_BASED_STUDY);
clickAndWait(Locator.linkWithText(SAMPLE_TYPE1));

// verify that the isPlated field renders correctly
_customizeViewsHelper.openCustomizeViewPanel();
_customizeViewsHelper.addColumn("IsPlated");
_customizeViewsHelper.applyCustomView();
table = new DataRegionTable("Dataset", getDriver());
List<String> values = table.getColumnDataAsText("IsPlated");
Assert.assertEquals("Invalid isPlated row values", List.of("Not Plated", "Not Plated"), values);
stopImpersonating();

log("Verifying log entries");
Expand Down Expand Up @@ -862,10 +871,10 @@ public List<String> getAssociatedModules()
protected void doCleanup(boolean afterTest) throws TestTimeoutException
{
_userHelper.deleteUsers(false, READER_USER);
_containerHelper.deleteProject(SAMPLE_TYPE_PROJECT, afterTest);
_containerHelper.deleteProject(VISIT_BASED_STUDY, afterTest);
_containerHelper.deleteProject(DATE_BASED_STUDY, afterTest);
_containerHelper.deleteProject(SAMPLE_TYPE_PROJECT + " Study 1", afterTest);
_containerHelper.deleteProject(SAMPLE_TYPE_PROJECT + " Study 2", afterTest);
_containerHelper.deleteProject(SAMPLE_TYPE_PROJECT, false);
_containerHelper.deleteProject(VISIT_BASED_STUDY, false);
_containerHelper.deleteProject(DATE_BASED_STUDY, false);
_containerHelper.deleteProject(SAMPLE_TYPE_PROJECT + " Study 1", false);
_containerHelper.deleteProject(SAMPLE_TYPE_PROJECT + " Study 2", false);
}
}