Skip to content

Commit 2d03b45

Browse files
Test fixes
1 parent fe28b45 commit 2d03b45

8 files changed

Lines changed: 12 additions & 14 deletions

File tree

flow/src/org/labkey/flow/controllers/executescript/confirmRunsToImport.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
to look up specimen information from the target study's specimen repository.
8787
</p>
8888
<p class="labkey-indented">
89-
<label for="targetStudy">Optionally, choose a target study folder:</label><br>
90-
<select id="targetStudy" name="targetStudy">
89+
<label for="TargetStudy">Optionally, choose a target study folder:</label><br>
90+
<select id="TargetStudy" name="TargetStudy">
9191
<labkey:options value="<%=unsafe(form.getTargetStudy())%>" map="<%=targetStudies%>"/>
9292
</select>
9393
</p>

flow/src/org/labkey/flow/controllers/executescript/importAnalysisChooseAnalysis.jsp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,8 @@ if (form.getKeywordDir() != null && form.getKeywordDir().length > 0 && StudyPubl
233233
<div style="padding-left: 2em; padding-bottom: 1em;">
234234
<br>
235235
Choose a target study folder:<br>
236-
<%=select().name("targetStudy").className(null).addOptions(targetStudies).selected(unsafe(form.getTargetStudy())).onChange("document.getElementById('studyChanged').value = true;")
236+
<%=select().name("TargetStudy").className(null).addOptions(targetStudies).selected(unsafe(form.getTargetStudy())).onChange("document.getElementById('studyChanged').value = true;")
237237
%>
238-
<%-- <select id="targetStudy" name="targetStudy">--%>
239-
<%-- <labkey:options value="<%=text(form.getTargetStudy())%>" map="<%=targetStudies%>"/>--%>
240-
<%-- </select>--%>
241238
<br><br>
242239
</div>
243240
<%

flow/src/org/labkey/flow/controllers/executescript/importAnalysisConfirm.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<input type="hidden" name="existingAnalysisId" id="existingAnalysisId" value="<%=form.getExistingAnalysisId()%>">
9494
<% } %>
9595

96-
<input type="hidden" name="targetStudy" id="targetStudy" value="<%=h(form.getTargetStudy())%>">
96+
<input type="hidden" name="TargetStudy" id="TargetStudy" value="<%=h(form.getTargetStudy())%>">
9797

9898
<p>You are about to import the analysis from the workspace with the following settings:</p>
9999
<%

luminex/test/src/org/labkey/test/tests/luminex/LuminexAsyncImportTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private void importSecondRun(int index, Calendar testDate, File file) {
105105
int i = index;
106106
goToTestAssayHome();
107107
clickButton("Import Data");
108-
setFormElement(Locator.name("network"), "NEWNET" + (i + 1));
108+
setFormElement(Locator.name("Network"), "NEWNET" + (i + 1));
109109
clickButton("Next");
110110
testDate.add(Calendar.DATE, 1);
111111
importLuminexRunPageTwo("Guide Set plate " + (i+1), "new"+isotype, "new"+conjugate, "", "", "NewNote" + (i+1),

luminex/test/src/org/labkey/test/tests/luminex/LuminexGuideSetTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ private void importPlateFiveAgain()
562562

563563
goToTestAssayHome();
564564
clickButton("Import Data");
565-
setFormElement(Locator.name("network"), "NETWORK" + (10));
565+
setFormElement(Locator.name("Network"), "NETWORK" + (10));
566566
clickButton("Next");
567567

568568
importLuminexRunPageTwo("Reload guide set 5", isotype, conjugate, "", "", "Notebook" + 11,

luminex/test/src/org/labkey/test/tests/luminex/LuminexUploadAndLinkTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public void testUploadAndLink()
218218
region.setFilter("FI", "Equals", "20");
219219
click(Locator.name(".toggle"));
220220
clickButton("Link to Study");
221-
selectOptionByText(Locator.name("targetStudy"), "/" + TEST_ASSAY_PRJ_LUMINEX + " (" + TEST_ASSAY_PRJ_LUMINEX + " Study)");
221+
selectOptionByText(AssayConstants.TARGET_STUDY_FIELD_LOCATOR, "/" + TEST_ASSAY_PRJ_LUMINEX + " (" + TEST_ASSAY_PRJ_LUMINEX + " Study)");
222222
clickButton("Next");
223223
setFormElement(Locator.name("participantId"), "ParticipantID");
224224
setFormElement(Locator.name("visitId"), "100.1");

viability/src/org/labkey/viability/ViabilityAssayDataHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ else if (targetStudyPair.getKey() == ExpProtocol.AssayDomainTypes.Result)
366366
// If the property is on the result domain, it's already in the base map.
367367
if (batchOrRunTargetStudy != null)
368368
{
369-
base.put("targetStudy", batchOrRunTargetStudy);
369+
base.put(AbstractAssayProvider.TARGET_STUDY_PROPERTY_NAME, batchOrRunTargetStudy);
370370
}
371371

372372
ViabilityResult result = ViabilityResult.fromMap(base, extra);

viability/src/org/labkey/viability/ViabilityResult.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import org.apache.commons.lang3.StringUtils;
2020
import org.jetbrains.annotations.Nullable;
21+
import org.labkey.api.assay.AbstractAssayProvider;
2122
import org.labkey.api.exp.PropertyDescriptor;
2223
import org.labkey.api.collections.CaseInsensitiveHashMap;
2324

@@ -97,8 +98,8 @@ else if (o instanceof List)
9798
throw new IllegalArgumentException("Expected comma separated list or a collecting of specimen IDs");
9899
}
99100

100-
if (base.get("targetStudy") instanceof String)
101-
result.setTargetStudy((String)base.get("targetStudy"));
101+
if (base.get(AbstractAssayProvider.TARGET_STUDY_PROPERTY_NAME) instanceof String s)
102+
result.setTargetStudy(s);
102103

103104
if (extra != null)
104105
result.setProperties(extra);
@@ -130,7 +131,7 @@ public Map<String, Object> toMap()
130131
// NOTE: The 'list' version of 'SpecimenIDs' is used when the guava file is parsed.
131132
ret.put("specimenIDs", getSpecimenIDList());
132133

133-
ret.put("targetStudy", getTargetStudy());
134+
ret.put(AbstractAssayProvider.TARGET_STUDY_PROPERTY_NAME, getTargetStudy());
134135

135136
ret.putAll(getStringProperties());
136137
return ret;

0 commit comments

Comments
 (0)