Skip to content

Commit

Permalink
deleting alerts before and after running tests (#1186)
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit dd0aa05)
  • Loading branch information
amsiglan authored and SuZhou-Joe committed Apr 30, 2024
1 parent a964ed8 commit a7dcd46
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 a7dcd46

Please sign in to comment.