From 1d40c0488fe08964d78ba93696c103c742d21f9c Mon Sep 17 00:00:00 2001 From: SteveGT96 Date: Wed, 4 Oct 2023 12:02:25 +0100 Subject: [PATCH] fix: Fix e2e tests --- cypress/integration/edit_patient_activity.spec.js | 5 ++--- cypress/integration/new_patient_activity.spec.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cypress/integration/edit_patient_activity.spec.js b/cypress/integration/edit_patient_activity.spec.js index 47beddfe0..0c165073a 100644 --- a/cypress/integration/edit_patient_activity.spec.js +++ b/cypress/integration/edit_patient_activity.spec.js @@ -43,10 +43,9 @@ describe("EditPatientActivity spec", () => { "images/profilePicture.jpg", { force: true } ); - - cy.get("[class=MuiDialogContent-root]").contains("Confirm").click(); - cy.wait(1000); + cy.get(".MuiDialogContent-root .MuiButton-containedPrimary").click(); + cy.wait(2000); cy.get("[class=profilePicture]") .find("img") .invoke("attr", "src") diff --git a/cypress/integration/new_patient_activity.spec.js b/cypress/integration/new_patient_activity.spec.js index 91fc300cc..7b46e112d 100644 --- a/cypress/integration/new_patient_activity.spec.js +++ b/cypress/integration/new_patient_activity.spec.js @@ -43,10 +43,9 @@ describe("NewPatientActivity spec", () => { "images/profilePicture.jpg", { force: true } ); - - cy.get("[class=MuiDialogContent-root]").contains("Confirm").click(); - cy.wait(1000); + cy.get(".MuiDialogContent-root .MuiButton-containedPrimary").click(); + cy.wait(2000); cy.get("[class=profilePicture]") .find("img") .invoke("attr", "src")