From 6c7cb60234ce02772249ac1167fa9f1ba19c874c Mon Sep 17 00:00:00 2001 From: Pranshu1902 Date: Fri, 29 Dec 2023 15:25:30 +0530 Subject: [PATCH] fix patient privacy cypress test --- cypress/e2e/camera_spec/patient_privacy.cy.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/camera_spec/patient_privacy.cy.ts b/cypress/e2e/camera_spec/patient_privacy.cy.ts index e1676b88286..04f6d38ad05 100644 --- a/cypress/e2e/camera_spec/patient_privacy.cy.ts +++ b/cypress/e2e/camera_spec/patient_privacy.cy.ts @@ -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"); });