From 2a02b23ef310aab3cb9501f9210ab8abcd021cdc Mon Sep 17 00:00:00 2001 From: Luke Gmys Date: Wed, 21 Dec 2022 20:33:47 +0100 Subject: [PATCH] [Security Solution] Clean connectors before custom query rule test (#147921) --- .../cypress/e2e/detection_rules/custom_query_rule.cy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/cypress/e2e/detection_rules/custom_query_rule.cy.ts b/x-pack/plugins/security_solution/cypress/e2e/detection_rules/custom_query_rule.cy.ts index 43825c9c662fd..ae1bb250fc605 100644 --- a/x-pack/plugins/security_solution/cypress/e2e/detection_rules/custom_query_rule.cy.ts +++ b/x-pack/plugins/security_solution/cypress/e2e/detection_rules/custom_query_rule.cy.ts @@ -79,7 +79,7 @@ import { } from '../../tasks/alerts_detection_rules'; import { createCustomRuleEnabled } from '../../tasks/api_calls/rules'; import { createTimeline } from '../../tasks/api_calls/timelines'; -import { cleanKibana, deleteAlertsAndRules } from '../../tasks/common'; +import { cleanKibana, deleteAlertsAndRules, deleteConnectors } from '../../tasks/common'; import { addEmailConnectorAndRuleAction } from '../../tasks/common/rule_actions'; import { continueWithNextSection, @@ -356,6 +356,7 @@ describe('Custom query rules', () => { before(() => { deleteAlertsAndRules(); + deleteConnectors(); createCustomRuleEnabled(getExistingRule(), 'rule1'); }); beforeEach(() => {