diff --git a/cypress/integrations/admin_activities/diseases_activities/add_disease_activity.cy.ts b/cypress/integrations/admin_activities/diseases_activities/add_disease_activity.cy.ts index 613c8e037..522ee6d07 100644 --- a/cypress/integrations/admin_activities/diseases_activities/add_disease_activity.cy.ts +++ b/cypress/integrations/admin_activities/diseases_activities/add_disease_activity.cy.ts @@ -39,9 +39,7 @@ describe("Add Disease Activity specs", () => { it("should cancel the cancellation of the disease creation", () => { cy.dataCy("add-new-disease").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to Reset the Form? All the unsaved data will be lost." - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/diseases_activities/edit_disease_activity.cy.ts b/cypress/integrations/admin_activities/diseases_activities/edit_disease_activity.cy.ts index 52c9cc160..60ac9c713 100644 --- a/cypress/integrations/admin_activities/diseases_activities/edit_disease_activity.cy.ts +++ b/cypress/integrations/admin_activities/diseases_activities/edit_disease_activity.cy.ts @@ -38,9 +38,7 @@ describe("Diseases Edit Activity specs", () => { it("should cancel the cancellation of the disease creation", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to Reset the Form? All the unsaved data will be lost." - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/exams_activities/add_exam_activity.cy.ts b/cypress/integrations/admin_activities/exams_activities/add_exam_activity.cy.ts index c20abbb8c..872d7f9d5 100644 --- a/cypress/integrations/admin_activities/exams_activities/add_exam_activity.cy.ts +++ b/cypress/integrations/admin_activities/exams_activities/add_exam_activity.cy.ts @@ -38,7 +38,7 @@ describe("Add exam Activity specs", () => { it("should cancel the cancellation of the exam creation", () => { cy.dataCy("add-new-exam").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains("Are you sure to Reset the Form"); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/exams_activities/edit_exam_activity.cy.ts b/cypress/integrations/admin_activities/exams_activities/edit_exam_activity.cy.ts index 59afcd767..dd34a6a53 100644 --- a/cypress/integrations/admin_activities/exams_activities/edit_exam_activity.cy.ts +++ b/cypress/integrations/admin_activities/exams_activities/edit_exam_activity.cy.ts @@ -35,7 +35,7 @@ describe("Exams edit activity specs", () => { it("should cancel the cancellation of the exam creation", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains("Are you sure to Reset the Form"); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/operations_activities/add_operation_activity.cy.ts b/cypress/integrations/admin_activities/operations_activities/add_operation_activity.cy.ts index f7df1e8bf..edadaaecf 100644 --- a/cypress/integrations/admin_activities/operations_activities/add_operation_activity.cy.ts +++ b/cypress/integrations/admin_activities/operations_activities/add_operation_activity.cy.ts @@ -39,9 +39,7 @@ describe("Add Operation Activity specs", () => { it("should cancel the cancellation of the operation creation", () => { cy.dataCy("add-new-operation").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to Reset the Form? All the unsaved data will be lost." - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/operations_activities/edit_operation_activity.cy.ts b/cypress/integrations/admin_activities/operations_activities/edit_operation_activity.cy.ts index d062b92ae..17c058355 100644 --- a/cypress/integrations/admin_activities/operations_activities/edit_operation_activity.cy.ts +++ b/cypress/integrations/admin_activities/operations_activities/edit_operation_activity.cy.ts @@ -38,9 +38,7 @@ describe("Operations Edit Activity specs", () => { it("should cancel the cancellation of the operation creation", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to Reset the Form? All the unsaved data will be lost." - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.be.visible"); }); diff --git a/cypress/integrations/admin_activities/types_activities/admissions_activities/add_admission_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/admissions_activities/add_admission_activity.cy.ts index 3bf707bb4..6989d4858 100644 --- a/cypress/integrations/admin_activities/types_activities/admissions_activities/add_admission_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/admissions_activities/add_admission_activity.cy.ts @@ -36,9 +36,7 @@ describe("Add admission type Activity specs", () => { it("should cancel the cancellation of the admission type creation", () => { cy.dataCy("add-admission-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the admission type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/admissions_activities/edit_admission_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/admissions_activities/edit_admission_activity.cy.ts index 2eb69a1e6..df735db1e 100644 --- a/cypress/integrations/admin_activities/types_activities/admissions_activities/edit_admission_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/admissions_activities/edit_admission_activity.cy.ts @@ -34,9 +34,7 @@ describe("Admission types Edit Activity specs", () => { it("should cancel the cancellation of the admission type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the admission type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/ages_activities/edit_ages_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/ages_activities/edit_ages_activity.cy.ts index 95506cffc..2d13a45f7 100644 --- a/cypress/integrations/admin_activities/types_activities/ages_activities/edit_ages_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/ages_activities/edit_ages_activity.cy.ts @@ -34,9 +34,7 @@ describe("Admission types Edit Activity specs", () => { it("should cancel the cancellation of the age types update", () => { cy.dataCy("edit-age-types").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the age types update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/deliveries_activities/add_delivery_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/deliveries_activities/add_delivery_activity.cy.ts index 2b2b0a8f0..26da7c810 100644 --- a/cypress/integrations/admin_activities/types_activities/deliveries_activities/add_delivery_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/deliveries_activities/add_delivery_activity.cy.ts @@ -34,9 +34,7 @@ describe("Add delivery type Activity specs", () => { it("should cancel the cancellation of the delivery type creation", () => { cy.dataCy("add-delivery-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the delivery type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/deliveries_activities/edit_delivery_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/deliveries_activities/edit_delivery_activity.cy.ts index fe396bd63..24a4cbb6c 100644 --- a/cypress/integrations/admin_activities/types_activities/deliveries_activities/edit_delivery_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/deliveries_activities/edit_delivery_activity.cy.ts @@ -32,9 +32,7 @@ describe("Delivery types Edit Activity specs", () => { it("should cancel the cancellation of the delivery type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the delivery type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/deliveryresulttypes_activities/add_deliveryresulttype_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/deliveryresulttypes_activities/add_deliveryresulttype_activity.cy.ts index 0f6947aac..f9cc35c85 100644 --- a/cypress/integrations/admin_activities/types_activities/deliveryresulttypes_activities/add_deliveryresulttype_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/deliveryresulttypes_activities/add_deliveryresulttype_activity.cy.ts @@ -36,9 +36,7 @@ describe("Add delivery result type Activity specs", () => { it("should cancel the cancellation of the delivery result type creation", () => { cy.dataCy("add-deliveryresult-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the delivery result type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/deliveryresulttypes_activities/edit_deliveryresulttype_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/deliveryresulttypes_activities/edit_deliveryresulttype_activity.cy.ts index de8d34ceb..d5b2da524 100644 --- a/cypress/integrations/admin_activities/types_activities/deliveryresulttypes_activities/edit_deliveryresulttype_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/deliveryresulttypes_activities/edit_deliveryresulttype_activity.cy.ts @@ -34,9 +34,7 @@ describe("Delivery result types Edit Activity specs", () => { it("should cancel the cancellation of the delivery result type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the delivery result type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/dischages_activities/add_dischage_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/dischages_activities/add_dischage_activity.cy.ts index 9883f7394..4262d5207 100644 --- a/cypress/integrations/admin_activities/types_activities/dischages_activities/add_dischage_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/dischages_activities/add_dischage_activity.cy.ts @@ -36,9 +36,7 @@ describe("Add discharge type Activity specs", () => { it("should cancel the cancellation of the discharge type creation", () => { cy.dataCy("add-discharge-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the discharge type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/dischages_activities/edit_dischages_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/dischages_activities/edit_dischages_activity.cy.ts index e7954b237..7f7caee7f 100644 --- a/cypress/integrations/admin_activities/types_activities/dischages_activities/edit_dischages_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/dischages_activities/edit_dischages_activity.cy.ts @@ -34,9 +34,7 @@ describe("Discharge types Edit Activity specs", () => { it("should cancel the cancellation of the discharge type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the discharge type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/diseases_activities/add_disease_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/diseases_activities/add_disease_activity.cy.ts index 42200c5bc..27eea2c11 100644 --- a/cypress/integrations/admin_activities/types_activities/diseases_activities/add_disease_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/diseases_activities/add_disease_activity.cy.ts @@ -36,9 +36,7 @@ describe("Add disease type Activity specs", () => { it("should cancel the cancellation of the disease type creation", () => { cy.dataCy("add-disease-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the disease type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/diseases_activities/edit_disease_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/diseases_activities/edit_disease_activity.cy.ts index 21bee467e..8207766c7 100644 --- a/cypress/integrations/admin_activities/types_activities/diseases_activities/edit_disease_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/diseases_activities/edit_disease_activity.cy.ts @@ -34,9 +34,7 @@ describe("Disease types Edit Activity specs", () => { it("should cancel the cancellation of the disease type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the disease type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/exams_activities/add_exam_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/exams_activities/add_exam_activity.cy.ts index 1967f699a..04ff55b1d 100644 --- a/cypress/integrations/admin_activities/types_activities/exams_activities/add_exam_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/exams_activities/add_exam_activity.cy.ts @@ -36,9 +36,7 @@ describe("Add exam type Activity specs", () => { it("should cancel the cancellation of the exam type creation", () => { cy.dataCy("add-exam-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the exam type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/exams_activities/edit_exam_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/exams_activities/edit_exam_activity.cy.ts index 99b4dcecc..16d492034 100644 --- a/cypress/integrations/admin_activities/types_activities/exams_activities/edit_exam_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/exams_activities/edit_exam_activity.cy.ts @@ -34,9 +34,7 @@ describe("Exam types Edit Activity specs", () => { it("should cancel the cancellation of the exam type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the exam type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/medicals_activities/add_medical_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/medicals_activities/add_medical_activity.cy.ts index 152da367c..854fefc12 100644 --- a/cypress/integrations/admin_activities/types_activities/medicals_activities/add_medical_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/medicals_activities/add_medical_activity.cy.ts @@ -36,9 +36,7 @@ describe("Add medical type Activity specs", () => { it("should cancel the cancellation of the medical type creation", () => { cy.dataCy("add-medical-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the medical type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/medicals_activities/edit_medical_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/medicals_activities/edit_medical_activity.cy.ts index f66f6cb4b..7f9e3ee69 100644 --- a/cypress/integrations/admin_activities/types_activities/medicals_activities/edit_medical_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/medicals_activities/edit_medical_activity.cy.ts @@ -34,9 +34,7 @@ describe("Medical types Edit Activity specs", () => { it("should cancel the cancellation of the medical type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the medical type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/operations_activities/add_operation_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/operations_activities/add_operation_activity.cy.ts index 390c2503e..9e98b579b 100644 --- a/cypress/integrations/admin_activities/types_activities/operations_activities/add_operation_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/operations_activities/add_operation_activity.cy.ts @@ -36,9 +36,7 @@ describe("Add operation type Activity specs", () => { it("should cancel the cancellation of the operation type creation", () => { cy.dataCy("add-operation-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the operation type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/operations_activities/edit_operation_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/operations_activities/edit_operation_activity.cy.ts index 9b85e4098..d655cb4f5 100644 --- a/cypress/integrations/admin_activities/types_activities/operations_activities/edit_operation_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/operations_activities/edit_operation_activity.cy.ts @@ -34,9 +34,7 @@ describe("Operation types Edit Activity specs", () => { it("should cancel the cancellation of the operation type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the operation type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/pregnanttreatments_activities/add_pregnanttreatment_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/pregnanttreatments_activities/add_pregnanttreatment_activity.cy.ts index 499c63c50..a0186f940 100644 --- a/cypress/integrations/admin_activities/types_activities/pregnanttreatments_activities/add_pregnanttreatment_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/pregnanttreatments_activities/add_pregnanttreatment_activity.cy.ts @@ -37,9 +37,7 @@ describe("Add pregnant treatment type Activity specs", () => { it("should cancel the cancellation of the pregnant treatment type creation", () => { cy.dataCy("add-pregnanttreatment-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the pregnant treatment type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/pregnanttreatments_activities/edit_pregnanttreatment_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/pregnanttreatments_activities/edit_pregnanttreatment_activity.cy.ts index 1e60a396a..0fc0c25a2 100644 --- a/cypress/integrations/admin_activities/types_activities/pregnanttreatments_activities/edit_pregnanttreatment_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/pregnanttreatments_activities/edit_pregnanttreatment_activity.cy.ts @@ -34,9 +34,7 @@ describe("Pregnant treatment types Edit Activity specs", () => { it("should cancel the cancellation of the pregnant treatment type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the pregnant treatment type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/vaccines_activities/add_vaccine_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/vaccines_activities/add_vaccine_activity.cy.ts index 9011999b1..690e7afd1 100644 --- a/cypress/integrations/admin_activities/types_activities/vaccines_activities/add_vaccine_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/vaccines_activities/add_vaccine_activity.cy.ts @@ -36,9 +36,7 @@ describe("Add vaccine type Activity specs", () => { it("should cancel the cancellation of the vaccine type creation", () => { cy.dataCy("add-vaccine-type").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the vaccine type creation?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/types_activities/vaccines_activities/edit_vaccine_activity.cy.ts b/cypress/integrations/admin_activities/types_activities/vaccines_activities/edit_vaccine_activity.cy.ts index c959ebe5f..984057d3c 100644 --- a/cypress/integrations/admin_activities/types_activities/vaccines_activities/edit_vaccine_activity.cy.ts +++ b/cypress/integrations/admin_activities/types_activities/vaccines_activities/edit_vaccine_activity.cy.ts @@ -34,9 +34,7 @@ describe("vaccine types Edit Activity specs", () => { it("should cancel the cancellation of the vaccine type update", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the vaccine type update?" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/vaccines_activities/add_vaccine_activity.cy.ts b/cypress/integrations/admin_activities/vaccines_activities/add_vaccine_activity.cy.ts index 26c93519a..31ceb98eb 100644 --- a/cypress/integrations/admin_activities/vaccines_activities/add_vaccine_activity.cy.ts +++ b/cypress/integrations/admin_activities/vaccines_activities/add_vaccine_activity.cy.ts @@ -36,9 +36,7 @@ describe("Add Vaccine Activity specs", () => { it("should cancel the cancellation of the vaccine creation", () => { cy.dataCy("add-new-vaccine").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the vaccine creation" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/vaccines_activities/edit_vaccine_activity.cy.ts b/cypress/integrations/admin_activities/vaccines_activities/edit_vaccine_activity.cy.ts index f99d0bec4..f7d129384 100644 --- a/cypress/integrations/admin_activities/vaccines_activities/edit_vaccine_activity.cy.ts +++ b/cypress/integrations/admin_activities/vaccines_activities/edit_vaccine_activity.cy.ts @@ -35,9 +35,7 @@ describe("Vaccines Edit Activity specs", () => { it("should cancel the cancellation of the vaccine creation", () => { cy.dataCy("table-edit-action").first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to cancel the vaccine update" - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.exist"); }); diff --git a/cypress/integrations/admin_activities/wards_activities/add_ward_activity.cy.ts b/cypress/integrations/admin_activities/wards_activities/add_ward_activity.cy.ts index 16a9de629..b1834b56b 100644 --- a/cypress/integrations/admin_activities/wards_activities/add_ward_activity.cy.ts +++ b/cypress/integrations/admin_activities/wards_activities/add_ward_activity.cy.ts @@ -39,9 +39,7 @@ describe("Add Ward Activity specs", () => { it("should cancel the cancellation of the ward creation", () => { cy.dataCy("add-new-ward").click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to Reset the Form? All the unsaved data will be lost." - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.be.visible"); }); diff --git a/cypress/integrations/admin_activities/wards_activities/edit_ward_activity.cy.ts b/cypress/integrations/admin_activities/wards_activities/edit_ward_activity.cy.ts index 7338f58a3..57cc67557 100644 --- a/cypress/integrations/admin_activities/wards_activities/edit_ward_activity.cy.ts +++ b/cypress/integrations/admin_activities/wards_activities/edit_ward_activity.cy.ts @@ -36,9 +36,7 @@ describe("Edit Ward Activity specs", () => { it("should cancel the cancellation of the ward creation", () => { cy.get('button[title="Edit"]').first().click(); cy.dataCy("cancel-form").click(); - cy.dataCy("dialog-info").contains( - "Are you sure to Reset the Form? All the unsaved data will be lost." - ); + cy.dataCy("dialog-info").contains("lost"); cy.dataCy("close-dialog").click(); cy.dataCy("dialog-info").should("not.be.visible"); });