Skip to content

Commit

Permalink
Merge pull request #1138 from mozzy11/develop
Browse files Browse the repository at this point in the history
fix Notes display on Refered tests
  • Loading branch information
mozzy11 authored Jun 25, 2024
2 parents 72d522c + c215ecf commit 4773c0c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/cypress/fixtures/Order.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"lastName": "Prime"
},
"labNo": "",
"invalidLabNo":"DEV0124000000000000"
"invalidLabNo": "DEV0124000000000000"
}
2 changes: 1 addition & 1 deletion frontend/cypress/fixtures/Patient.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"nationalId": "UG-23SLHD7DBD",
"DOB": "12/05/2001",
"gender": "Male",
"labNo":"DEV01240000000000001"
"labNo": "DEV01240000000000001"
}
3 changes: 1 addition & 2 deletions frontend/cypress/pages/OrderEntityPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ class OrderEntityPage {
).click();
}


validateAcessionNumber(order){
validateAcessionNumber(order) {
cy.intercept("GET", `**/rest/SampleEntryAccessionNumberValidation**`).as(
"accessionNoValidation",
);
Expand Down
7 changes: 3 additions & 4 deletions frontend/cypress/pages/PatientEntryPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PatientEntryPage {
personContactPrimaryPhone = "input#patientContact\\.person\\.primaryPhone";
personContactEmail = "input#patientContact\\.person\\.email";
patientIdSelector = "input#patientId";
labNoSelector="#labNumber";
labNoSelector = "#labNumber";
city = "input#city";
primaryPhone = "input#primaryPhone";
dateOfBirth = "input#date-picker-default-id";
Expand Down Expand Up @@ -93,9 +93,8 @@ class PatientEntryPage {
cy.enterText(this.patientIdSelector, PID);
}

searchPatientBylabNo(labNo){
cy.enterText(this. labNoSelector, labNo);

searchPatientBylabNo(labNo) {
cy.enterText(this.labNoSelector, labNo);
}

getPatientSearchResultsTable() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ function ReferredOutTests(props) {
);
} else if (cell.info.header === "active") {
return <TableCell key={cell.id}>{cell.value.toString()}</TableCell>;
} else if (cell.info.header === "notes") {
return (
<TableCell key={cell.id}>
<div dangerouslySetInnerHTML={{ __html: cell.value }} />
</TableCell>
);
} else {
return <TableCell key={cell.id}>{cell.value}</TableCell>;
}
Expand Down

0 comments on commit 4773c0c

Please sign in to comment.