Skip to content

Commit

Permalink
trying to fix flakey burn test
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Aug 28, 2023
1 parent e1703de commit 99061d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: <InvestigationFields investigationFields={rule.investigation_fields} />,
description: (
<InvestigationFields investigationFields={rule.investigation_fields.field_names} />
),
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 99061d5

Please sign in to comment.