Skip to content

Commit

Permalink
fix: Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGT96 committed Oct 4, 2023
1 parent 41ba7ab commit 1d40c04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions cypress/integration/edit_patient_activity.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
5 changes: 2 additions & 3 deletions cypress/integration/new_patient_activity.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1d40c04

Please sign in to comment.