Skip to content

Commit d56b0c2

Browse files
Merge 25.7 to 25.8
2 parents 71e3bb6 + 04455f1 commit d56b0c2

File tree

3 files changed

+26
-11
lines changed

3 files changed

+26
-11
lines changed

ehr/resources/views/ehrTemplates.html

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,18 @@
3737
}
3838

3939
createEHRBillingDomainHandler = function () {
40-
var ctx = EHR.Utils.getEHRContext();
40+
const ctx = EHR.Utils.getEHRContext();
41+
const container = document.getElementById("ehrbilling_container").value;
42+
if (!container) {
43+
LABKEY.Utils.alert("Error", "Must enter the container path of the billing folder.");
44+
}
4145

4246
LABKEY.Domain.create({
4347
module: ctx ? ctx['EHRCustomModule'] : null,
4448
domainKind: "EHR_Billing",
4549
domainGroup: "ehr_billing",
4650
importData: false,
47-
containerPath: ctx ? ctx['EHRStudyContainer'] : null,
51+
containerPath: container,
4852
success: function () {
4953
LABKEY.Utils.alert("Success","EHR_Billing tables updated successfully.");
5054
},
@@ -55,8 +59,8 @@
5559
}
5660

5761
createEHRComplianceDomainHandler = function () {
58-
var ctx = EHR.Utils.getEHRContext();
59-
var container = document.getElementById("ehrcompliance_container").value;
62+
const ctx = EHR.Utils.getEHRContext();
63+
const container = document.getElementById("ehrcompliance_container").value;
6064
if (!container) {
6165
LABKEY.Utils.alert("Error", "Must enter the container path of the compliance folder.");
6266
}
@@ -90,16 +94,19 @@
9094
<h5><b>
9195
<a style="cursor: pointer;" id='createEHRDomainHandler'>Load EHR table definitions</a>
9296
<br><br>
97+
9398
<a style="cursor: pointer;" id='createEHRLookupsDomainHandler'>Load EHR_Lookup table definitions</a>
9499
<br><br>
95-
<a style="cursor: pointer;" id='createEHRBillingDomainHandler'>Load EHR_Billing table definitions</a>
100+
101+
<a style="margin-right: 10px; cursor: pointer;" id='createEHRBillingDomainHandler'>Load EHR_Billing table definitions</a>
102+
<label for="ehrbilling_container">Container:</label>
103+
<input type="text" id="ehrbilling_container" name="ehrbilling_container" style="width: 300px;">
96104
<br><br>
97-
<div>
98-
<a style="margin-right: 10px; cursor: pointer;" id='createEHRComplianceDomainHandler'>Load EHR_Compliance table definitions</a>
99-
<label for="ehrcompliance_container">Container:</label>
100-
<input type="text" id="ehrcompliance_container" name="ehrcompliance_container" style="width: 300px;">
101105

102-
</div>
106+
<a style="margin-right: 10px; cursor: pointer;" id='createEHRComplianceDomainHandler'>Load EHR_Compliance table definitions</a>
107+
<label for="ehrcompliance_container">Container:</label>
108+
<input type="text" id="ehrcompliance_container" name="ehrcompliance_container" style="width: 300px;">
109+
103110
</b></h5>
104111
</div>
105112
</html>

ehr/test/src/org/labkey/test/pages/ehr/ParticipantViewPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public ParticipantViewPage clickReportTab(String reportLabel)
115115

116116
public WebElement getActiveReportPanel()
117117
{
118-
return activeReportPanel.findElementOrNull(getDriver());
118+
return activeReportPanel.waitForElement(getDriver(), 2_000);
119119
}
120120

121121
public DataRegionTable getActiveReportDataRegion()

ehr/test/src/org/labkey/test/util/ehr/EHRTestHelper.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,14 @@ public void verifyAllReportTabs(ParticipantViewPage participantView)
290290
verifyReportTabs(participantView, Collections.emptyMap());
291291
}
292292

293+
public WebElement fillAnInputByName(String name, String value)
294+
{
295+
WebElement el = Locator.name(name).findElement(_test.getDriver());
296+
el.click();
297+
el.sendKeys(value);
298+
return el;
299+
}
300+
293301
/**
294302
* Verify that the specified reports have no errors
295303
* @param participantView Should be on a participant view or animal history page with some animals selected

0 commit comments

Comments
 (0)