diff --git a/x-pack/plugins/security_solution/cypress/integration/alerts_detection_rules_custom.spec.ts b/x-pack/plugins/security_solution/cypress/integration/alerts_detection_rules_custom.spec.ts index 79cdc6c72f128..491f4f8952fd9 100644 --- a/x-pack/plugins/security_solution/cypress/integration/alerts_detection_rules_custom.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/alerts_detection_rules_custom.spec.ts @@ -120,8 +120,8 @@ describe('Custom detection rules creation', () => { }); after(() => { - esArchiverUnload('timeline'); deleteRule(); + esArchiverUnload('timeline'); }); it('Creates and activates a new rule', () => { diff --git a/x-pack/plugins/security_solution/cypress/integration/alerts_detection_rules_ml.spec.ts b/x-pack/plugins/security_solution/cypress/integration/alerts_detection_rules_ml.spec.ts index 1ed889c77b49d..153c55fae59fe 100644 --- a/x-pack/plugins/security_solution/cypress/integration/alerts_detection_rules_ml.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/alerts_detection_rules_ml.spec.ts @@ -79,8 +79,8 @@ describe('Detection rules, machine learning', () => { }); after(() => { - esArchiverUnload('prebuilt_rules_loaded'); deleteRule(); + esArchiverUnload('prebuilt_rules_loaded'); }); it('Creates and activates a new ml rule', () => {