forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SIEM] View signal in default timeline (elastic#62616) (elastic#62689)
* adds test data * adds 'View a signal in timeline' test * implements test * fixes implementation * changes view signal for investigate signal
- Loading branch information
1 parent
fa70396
commit d44699e
Showing
7 changed files
with
9,138 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
x-pack/legacy/plugins/siem/cypress/integration/detections_timeline.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { SIGNAL_ID } from '../screens/detections'; | ||
import { PROVIDER_BADGE } from '../screens/timeline'; | ||
|
||
import { | ||
expandFirstSignal, | ||
investigateFirstSignalInTimeline, | ||
waitForSignalsPanelToBeLoaded, | ||
} from '../tasks/detections'; | ||
import { esArchiverLoad, esArchiverUnload } from '../tasks/es_archiver'; | ||
import { loginAndWaitForPage } from '../tasks/login'; | ||
|
||
import { DETECTIONS } from '../urls/navigation'; | ||
|
||
describe('Detections timeline', () => { | ||
beforeEach(() => { | ||
esArchiverLoad('timeline_signals'); | ||
loginAndWaitForPage(DETECTIONS); | ||
}); | ||
|
||
afterEach(() => { | ||
esArchiverUnload('timeline_signals'); | ||
}); | ||
|
||
it('Investigate signal in default timeline', () => { | ||
waitForSignalsPanelToBeLoaded(); | ||
expandFirstSignal(); | ||
cy.get(SIGNAL_ID) | ||
.first() | ||
.invoke('text') | ||
.then(eventId => { | ||
investigateFirstSignalInTimeline(); | ||
cy.get(PROVIDER_BADGE) | ||
.invoke('text') | ||
.should('eql', `_id: "${eventId}"`); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
interface Timeline { | ||
title: string; | ||
query: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.