Skip to content

Commit 7783767

Browse files
[Security Solution] expandable flyout - inverse Visualizations and Investigation order and expand Investigation by default
1 parent 2a67e0f commit 7783767

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

x-pack/plugins/security_solution/cypress/e2e/investigations/alerts/expandable_flyout/alert_details_right_panel_overview_tab.cy.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ describe('Alert details expandable flyout right panel overview tab', () => {
147147
describe('investigation section', () => {
148148
it('should display investigation section', () => {
149149
toggleOverviewTabAboutSection();
150-
toggleOverviewTabInvestigationSection();
151150

152151
cy.log('header and content');
153152

@@ -206,6 +205,7 @@ describe('Alert details expandable flyout right panel overview tab', () => {
206205
describe('insights section', () => {
207206
it('should display entities section', () => {
208207
toggleOverviewTabAboutSection();
208+
toggleOverviewTabInvestigationSection();
209209
toggleOverviewTabInsightsSection();
210210

211211
cy.log('header and content');
@@ -224,9 +224,9 @@ describe('Alert details expandable flyout right panel overview tab', () => {
224224
// cy.get(DOCUMENT_DETAILS_FLYOUT_INSIGHTS_TAB_ENTITIES_CONTENT).should('be.visible');
225225
});
226226

227-
// TODO: skipping this due to flakiness
228-
it.skip('should display threat intelligence section', () => {
227+
it('should display threat intelligence section', () => {
229228
toggleOverviewTabAboutSection();
229+
toggleOverviewTabInvestigationSection();
230230
toggleOverviewTabInsightsSection();
231231

232232
cy.log('header and content');
@@ -270,6 +270,7 @@ describe('Alert details expandable flyout right panel overview tab', () => {
270270
createNewCaseFromExpandableFlyout();
271271

272272
toggleOverviewTabAboutSection();
273+
toggleOverviewTabInvestigationSection();
273274
toggleOverviewTabInsightsSection();
274275

275276
cy.log('header and content');
@@ -311,6 +312,7 @@ describe('Alert details expandable flyout right panel overview tab', () => {
311312
// we need to generate enough data to have at least one field with prevalence
312313
it.skip('should display prevalence section', () => {
313314
toggleOverviewTabAboutSection();
315+
toggleOverviewTabInvestigationSection();
314316
toggleOverviewTabInsightsSection();
315317

316318
cy.log('header and content');
@@ -338,6 +340,7 @@ describe('Alert details expandable flyout right panel overview tab', () => {
338340
describe('response section', () => {
339341
it('should display empty message', () => {
340342
toggleOverviewTabAboutSection();
343+
toggleOverviewTabInvestigationSection();
341344
toggleOverviewTabResponseSection();
342345

343346
cy.get(DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_RESPONSE_SECTION_EMPTY_RESPONSE).should(

x-pack/plugins/security_solution/public/flyout/right/components/investigation_section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface DescriptionSectionProps {
2323
/**
2424
* Most top section of the overview tab. It contains the description, reason and mitre attack information (for a document of type alert).
2525
*/
26-
export const InvestigationSection: VFC<DescriptionSectionProps> = ({ expanded = false }) => {
26+
export const InvestigationSection: VFC<DescriptionSectionProps> = ({ expanded = true }) => {
2727
return (
2828
<ExpandableSection
2929
expanded={expanded}

x-pack/plugins/security_solution/public/flyout/right/tabs/overview_tab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export const OverviewTab: FC = memo(() => {
2222
<>
2323
<AboutSection />
2424
<EuiHorizontalRule margin="l" />
25-
<VisualizationsSection />
26-
<EuiHorizontalRule margin="l" />
2725
<InvestigationSection />
2826
<EuiHorizontalRule margin="l" />
27+
<VisualizationsSection />
28+
<EuiHorizontalRule margin="l" />
2929
<InsightsSection />
3030
<EuiHorizontalRule margin="l" />
3131
<ResponseSection />

0 commit comments

Comments
 (0)