Skip to content

Commit

Permalink
restructure the code lines and define viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 committed Dec 20, 2024
1 parent ac2793f commit 488afc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/e2e/patient_spec/PatientConsultationDischarge.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe("Patient Discharge based on multiple reason", () => {
});

beforeEach(() => {
cy.viewport(1280, 720);
cy.restoreLocalStorage();
cy.clearLocalStorage(/filters--.+/);
cy.awaitUrl("/patients");
Expand Down Expand Up @@ -115,9 +116,9 @@ describe("Patient Discharge based on multiple reason", () => {
cy.clickSubmitButton("Confirm Discharge");
patientDischarge.interceptDischargePatient();
cy.clickSubmitButton("Acknowledge & Submit");
patientDischarge.verifyDischargePatient();
cy.verifyNotification("Patient Discharged Successfully");
cy.closeNotification();
patientDischarge.verifyDischargePatient();
// Verify the consultation dashboard reflection
cy.verifyContentPresence("#consultation-buttons", ["Recovered"]);
// Verify the dashboard and discharge information
Expand Down

0 comments on commit 488afc3

Please sign in to comment.