Skip to content

Commit

Permalink
fix patient privacy cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranshu1902 committed Dec 29, 2023
1 parent 7f6718c commit 6c7cb60
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cypress/e2e/camera_spec/patient_privacy.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ describe("Patient Privacy", () => {
cy.restoreLocalStorage();
cy.awaitUrl("/patients");
cy.intercept("**/api/v1/consultation/**").as("consultation");
cy.get("input[id='name']").type("Dummy Patient");
cy.contains("a", "Dummy Patient").contains("a", "Dummy Facility 1").click();
cy.get("input[id='name']").type("Dummy Patient 16");
cy.contains("a", "Dummy Patient 16").click();
cy.wait("@consultation");
cy.get("a").contains("Camera Feed").click();
cy.get("button").contains("Assign Bed").click();
cy.get("input[name='bed']").type("Dummy Bed 6");
cy.get("li[role='option']").contains("Dummy Bed 6").click();
cy.wait(2000);
cy.get("button").contains("Move to bed").click();
cy.wait(2000);
cy.url().then((urlValue) => cy.awaitUrl(urlValue + "/feed"));
cy.wait("@consultation");
});

Expand Down

0 comments on commit 6c7cb60

Please sign in to comment.