From 8ba400ca41c328b7e49cc33f59119f79ea2a1e31 Mon Sep 17 00:00:00 2001 From: Pablo Machado Date: Fri, 28 Jun 2024 11:00:40 +0200 Subject: [PATCH] [Security Solution] Attempt to fix flaky MKI test (#187067) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Glo (@MadameSheema) solved the problem!! 🥳 🎈🍾 Flaky test https://github.com/elastic/kibana/issues/179687 The assumption is that logging twice for a single test (`it`) generates some concurrency that logs off the user. --- .../dashboards/entity_analytics/new_risk_score.cy.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/entity_analytics/dashboards/entity_analytics/new_risk_score.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/entity_analytics/dashboards/entity_analytics/new_risk_score.cy.ts index da59afaec941c..b704b67ad41d6 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/entity_analytics/dashboards/entity_analytics/new_risk_score.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/entity_analytics/dashboards/entity_analytics/new_risk_score.cy.ts @@ -78,8 +78,7 @@ describe('Entity Analytics Dashboard', { tags: ['@ess', '@serverless'] }, () => }); }); - // https://github.com/elastic/kibana/issues/179687 - describe('When risk engine is enabled', { tags: ['@skipInServerlessMKI'] }, () => { + describe('When risk engine is enabled', () => { beforeEach(() => { login(); mockRiskEngineEnabled(); @@ -151,7 +150,6 @@ describe('Entity Analytics Dashboard', { tags: ['@ess', '@serverless'] }, () => }); beforeEach(() => { - login(); visitWithTimeRange(ALERTS_URL); waitForAlertsToPopulate(); visitWithTimeRange(ENTITY_ANALYTICS_URL); @@ -244,7 +242,6 @@ describe('Entity Analytics Dashboard', { tags: ['@ess', '@serverless'] }, () => }); beforeEach(() => { - login(); visitWithTimeRange(ALERTS_URL); waitForAlertsToPopulate(); visitWithTimeRange(ENTITY_ANALYTICS_URL);