-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into sainak/feat/use-ma…
…naged-media-source
- Loading branch information
Showing
177 changed files
with
4,458 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,5 @@ | |
"arrowParens": "always", | ||
"tailwindFunctions": [ | ||
"classNames" | ||
], | ||
"plugins": [ | ||
"prettier-plugin-tailwindcss" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
files: | ||
- source: /src/Locale/en/*.json | ||
translation: /src/Locale/%two_letters_code%/%original_file_name% | ||
bundles: | ||
- 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...ess/e2e/assets_spec/assets_creation.cy.ts → cypress/e2e/assets_spec/AssetsCreation.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
cypress/e2e/assets_spec/assets_manage.cy.ts → cypress/e2e/assets_spec/AssetsManage.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
cypress/e2e/auth_spec/forget_password.cy.ts → cypress/e2e/auth_spec/ForgotPassword.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...ss/e2e/external_results_spec/filter.cy.ts → ...lts_spec/ExternalResultsAdvanceFilters.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...e2e/facility_spec/facility_creation.cy.ts → .../e2e/facility_spec/FacilityCreation.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e2e/facility_spec/facility_homepage.cy.ts → .../e2e/facility_spec/FacilityHomepage.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
cypress/e2e/facility_spec/inventory.cy.ts → ...e2e/facility_spec/FacilityInventory.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...e/patient_spec/patient_consultation.cy.ts → ...nt_spec/PatientConsultationCreation.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
.../e2e/patient_spec/patient_discharge.cy.ts → ...t_spec/PatientConsultationDischarge.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import LoginPage from "../../pageobject/Login/LoginPage"; | ||
import { PatientPage } from "../../pageobject/Patient/PatientCreation"; | ||
import { PatientDoctorNotes } from "../../pageobject/Patient/PatientDoctorNotes"; | ||
|
||
describe("Patient Discussion notes in the consultation page", () => { | ||
const loginPage = new LoginPage(); | ||
const patientPage = new PatientPage(); | ||
const patientDoctorNotes = new PatientDoctorNotes(); | ||
const patientName = "Dummy Patient 4"; | ||
const patientNurseNote = "Test nurse Notes"; | ||
const patientNurseReplyNote = "Test nurse reply Notes"; | ||
const discussionNotesSubscribeWarning = | ||
"Please subscribe to notifications to get live updates on discussion notes."; | ||
const discussionNotesSuccessMessage = "Note added successfully"; | ||
|
||
before(() => { | ||
loginPage.loginAsDisctrictAdmin(); | ||
cy.saveLocalStorage(); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.restoreLocalStorage(); | ||
cy.clearLocalStorage(/filters--.+/); | ||
cy.awaitUrl("/patients"); | ||
}); | ||
|
||
it("Create a nurse note for a patient and verify both ID received the messages", () => { | ||
// Create a doctor notes a with a district admin | ||
patientPage.visitPatient(patientName); | ||
patientDoctorNotes.visitDiscussionNotesPage(); | ||
cy.verifyNotification(discussionNotesSubscribeWarning); | ||
cy.closeNotification(); | ||
// switch the switch to nurse note, as the bydefault is doctornotes | ||
patientDoctorNotes.selectNurseDiscussion(); | ||
patientDoctorNotes.addDiscussionNotes(patientNurseNote); | ||
patientDoctorNotes.postDiscussionNotes(); | ||
cy.verifyNotification(discussionNotesSuccessMessage); | ||
cy.closeNotification(); | ||
// verify the auto-switching of tab to nurse notes if the user is a nurse | ||
cy.get("p").contains("Sign Out").click(); | ||
loginPage.loginManuallyAsNurse(); | ||
loginPage.ensureLoggedIn(); | ||
cy.visit("/patients"); | ||
patientPage.visitPatient(patientName); | ||
patientDoctorNotes.visitDiscussionNotesPage(); | ||
// verify the message is received from admin | ||
cy.verifyNotification(discussionNotesSubscribeWarning); | ||
cy.closeNotification(); | ||
patientDoctorNotes.verifyDiscussionMessage(patientNurseNote); | ||
// Post a reply comment to the message | ||
patientDoctorNotes.addDiscussionNotes(patientNurseReplyNote); | ||
patientDoctorNotes.postDiscussionNotes(); | ||
cy.verifyNotification(discussionNotesSuccessMessage); | ||
cy.closeNotification(); | ||
patientDoctorNotes.verifyDiscussionMessage(patientNurseReplyNote); | ||
}); | ||
|
||
afterEach(() => { | ||
cy.saveLocalStorage(); | ||
}); | ||
}); |
1 change: 0 additions & 1 deletion
1
...e2e/patient_spec/patient_fileupload.cy.ts → ...ess/e2e/patient_spec/PatientFileUpload.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.