Skip to content

Commit

Permalink
deleting alerts before and after running tests (opensearch-project#1186
Browse files Browse the repository at this point in the history
…) (opensearch-project#1193)

Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit dd0aa05)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
2 people authored and LDrago27 committed May 3, 2024
1 parent 52e912a commit 6e972d6
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 6e972d6

Please sign in to comment.