From 6e972d645d7d4f69a5216f5a4598a308d65bfeb7 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 08:26:46 +0800 Subject: [PATCH] deleting alerts before and after running tests (#1186) (#1193) Signed-off-by: Amardeepsingh Siglani (cherry picked from commit dd0aa0575358aa71cd0e6976d5b349815e5223f6) Co-authored-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 260efaf34..1a7425b8d 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 @@ -22,6 +22,7 @@ describe('AcknowledgeAlertsModal', () => { before(() => { // Delete any existing monitors cy.deleteAllMonitors(); + cy.deleteAllAlerts(); // Load sample data cy.loadSampleEcommerceData(); @@ -223,6 +224,9 @@ describe('AcknowledgeAlertsModal', () => { // Delete all monitors cy.deleteAllMonitors(); + // Delete all alerts + cy.deleteAllAlerts(); + // Delete sample data cy.deleteIndexByName(`${ALERTING_INDEX.SAMPLE_DATA_ECOMMERCE}`); });