Skip to content

Commit

Permalink
deleting alerts before and after running tests (#1186) (#1193)
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit dd0aa05)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and amsiglan authored May 1, 2024
1 parent c4c515d commit a085019
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('AcknowledgeAlertsModal', () => {
before(() => {
// Delete any existing monitors
cy.deleteAllMonitors();
cy.deleteAllAlerts();

// Load sample data
cy.loadSampleEcommerceData();
Expand Down Expand Up @@ -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}`);
});
Expand Down

0 comments on commit a085019

Please sign in to comment.