From dd0aa0575358aa71cd0e6976d5b349815e5223f6 Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Thu, 28 Mar 2024 08:21:49 -0700 Subject: [PATCH] deleting alerts before and after running tests (#1186) Signed-off-by: Amardeepsingh Siglani --- .../acknowledge_alerts_modal_spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cypress/integration/plugins/alerting-dashboards-plugin/acknowledge_alerts_modal_spec.js b/cypress/integration/plugins/alerting-dashboards-plugin/acknowledge_alerts_modal_spec.js index a325e9248..8b08d8f34 100644 --- a/cypress/integration/plugins/alerting-dashboards-plugin/acknowledge_alerts_modal_spec.js +++ b/cypress/integration/plugins/alerting-dashboards-plugin/acknowledge_alerts_modal_spec.js @@ -21,6 +21,7 @@ describe('AcknowledgeAlertsModal', () => { before(() => { // Delete any existing monitors cy.deleteAllMonitors(); + cy.deleteAllAlerts(); // Load sample data cy.loadSampleEcommerceData(); @@ -222,6 +223,9 @@ describe('AcknowledgeAlertsModal', () => { // Delete all monitors cy.deleteAllMonitors(); + // Delete all alerts + cy.deleteAllAlerts(); + // Delete sample data cy.deleteIndexByName(`${ALERTING_INDEX.SAMPLE_DATA_ECOMMERCE}`); });