From 8a8c251aeeb4d319842de804d8be98978851d7ea Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Thu, 26 Aug 2021 11:15:33 +0200 Subject: [PATCH] fixes 'Marking alerts as acknowledged' test (#110032) (#110173) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../integration/detection_alerts/acknowledged.spec.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/acknowledged.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/acknowledged.spec.ts index d81c444824a2a..5d72105178b69 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/acknowledged.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/acknowledged.spec.ts @@ -12,11 +12,9 @@ import { selectNumberOfAlerts, waitForAlertsPanelToBeLoaded, waitForAlerts, - waitForAlertsToBeLoaded, markAcknowledgedFirstAlert, goToAcknowledgedAlerts, waitForAlertsIndexToBeCreated, - goToOpenedAlerts, } from '../../tasks/alerts'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; @@ -26,7 +24,7 @@ import { refreshPage } from '../../tasks/security_header'; import { ALERTS_URL } from '../../urls/navigation'; -describe.skip('Marking alerts as acknowledged', () => { +describe('Marking alerts as acknowledged', () => { beforeEach(() => { cleanKibana(); loginAndWaitForPage(ALERTS_URL); @@ -50,10 +48,6 @@ describe.skip('Marking alerts as acknowledged', () => { cy.get(TAKE_ACTION_POPOVER_BTN).should('exist'); markAcknowledgedFirstAlert(); - refreshPage(); - waitForAlertsToBeLoaded(); - goToOpenedAlerts(); - waitForAlertsToBeLoaded(); const expectedNumberOfAlerts = +numberOfAlerts - numberOfAlertsToBeMarkedAcknowledged; cy.get(ALERTS_COUNT).should('have.text', `${expectedNumberOfAlerts} alerts`);