From 99061d580cd234c160083b999017c12fb5d597ff Mon Sep 17 00:00:00 2001 From: Yara Tercero Date: Mon, 28 Aug 2023 10:34:17 -0700 Subject: [PATCH] trying to fix flakey burn test --- .../components/rule_details/rule_about_section.tsx | 6 ++++-- .../cypress/e2e/investigations/alerts/alerts_details.cy.ts | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_about_section.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_about_section.tsx index 12ca5b5683f68..5c3002946baf6 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_about_section.tsx +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_management/components/rule_details/rule_about_section.tsx @@ -283,10 +283,12 @@ const prepareAboutSectionListItems = (rule: RuleResponse): EuiDescriptionListPro }); } - if (rule.investigation_fields && rule.investigation_fields.length > 0) { + if (rule.investigation_fields && rule.investigation_fields.field_names.length > 0) { aboutSectionListItems.push({ title: i18n.INVESTIGATION_FIELDS_FIELD_LABEL, - description: , + description: ( + + ), }); } diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/alerts_details.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/alerts_details.cy.ts index 511b606fee976..a7f57a08b4368 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/alerts_details.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/alerts_details.cy.ts @@ -49,6 +49,7 @@ describe('Alert details flyout', { tags: ['@ess', '@serverless'] }, () => { }); it('should update the table when status of the alert is updated', () => { + cy.get(OVERVIEW_RULE).should('be.visible'); cy.get(ALERTS_TABLE_COUNT).should('have.text', '2 alerts'); cy.get(ALERT_SUMMARY_SEVERITY_DONUT_CHART).should('contain.text', '2alerts'); expandFirstAlert();