-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SIEM] Fields browser readable (#56000)
* extracts methods to tasks * uses cypress api for assertions * refactor * removes tag
- Loading branch information
1 parent
3db8cb3
commit fc10fb6
Showing
8 changed files
with
227 additions
and
92 deletions.
There are no files selected for viewing
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
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
60 changes: 60 additions & 0 deletions
60
x-pack/legacy/plugins/siem/cypress/screens/timeline/fields_browser.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,60 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export const FIELDS_BROWSER_TITLE = '[data-test-subj="field-browser-title"]'; | ||
|
||
/** Typing in this input filters the Field Browser */ | ||
export const FIELDS_BROWSER_FILTER_INPUT = '[data-test-subj="field-search"]'; | ||
|
||
/** The title of the selected category in the right-hand side of the fields browser */ | ||
export const FIELDS_BROWSER_SELECTED_CATEGORY_TITLE = '[data-test-subj="selected-category-title"]'; | ||
|
||
export const FIELDS_BROWSER_SELECTED_CATEGORY_COUNT = | ||
'[data-test-subj="selected-category-count-badge"]'; | ||
|
||
export const FIELDS_BROWSER_CATEGORIES_COUNT = '[data-test-subj="categories-count"]'; | ||
|
||
export const FIELDS_BROWSER_HOST_CATEGORIES_COUNT = '[data-test-subj="host-category-count"]'; | ||
|
||
export const FIELDS_BROWSER_SYSTEM_CATEGORIES_COUNT = '[data-test-subj="system-category-count"]'; | ||
|
||
export const FIELDS_BROWSER_FIELDS_COUNT = '[data-test-subj="fields-count"]'; | ||
|
||
/** Contains the body of the fields browser */ | ||
export const FIELDS_BROWSER_CONTAINER = '[data-test-subj="fields-browser-container"]'; | ||
|
||
export const FIELDS_BROWSER_MESSAGE_HEADER = | ||
'[data-test-subj="timeline"] [data-test-subj="header-text-message"]'; | ||
|
||
export const FIELDS_BROWSER_MESSAGE_CHECKBOX = | ||
'[data-test-subj="timeline"] [data-test-subj="field-message-checkbox"]'; | ||
|
||
export const FIELDS_BROWSER_HOST_GEO_COUNTRY_NAME_HEADER = | ||
'[data-test-subj="header-text-host.geo.country_name"]'; | ||
|
||
export const FIELDS_BROWSER_HOST_GEO_COUNTRY_NAME_CHECKBOX = | ||
'[data-test-subj="field-host.geo.country_name-checkbox"]'; | ||
|
||
export const FIELDS_BROWSER_DRAGGABLE_HOST_GEO_COUNTRY_NAME_HEADER = | ||
'[data-test-subj="timeline"] [data-test-subj="field-name-host.geo.country_name"]'; | ||
|
||
export const FIELDS_BROWSER_HOST_GEO_CITY_NAME_HEADER = | ||
'[data-test-subj="header-text-host.geo.city_name"]'; | ||
|
||
export const FIELDS_BROWSER_HOST_GEO_CITY_NAME_CHECKBOX = | ||
'[data-test-subj="field-host.geo.city_name-checkbox"]'; | ||
|
||
export const FIELDS_BROWSER_HEADER_DROP_AREA = | ||
'[data-test-subj="timeline"] [data-test-subj="headers-group"]'; | ||
|
||
export const FIELDS_BROWSER_HEADER_HOST_GEO_CONTINENT_NAME_HEADER = | ||
'[data-test-subj="header-text-host.geo.continent_name"]'; | ||
|
||
export const FIELDS_BROWSER_HOST_GEO_CONTINENT_NAME_CHECKBOX = | ||
'[data-test-subj="field-host.geo.continent_name-checkbox"]'; | ||
|
||
export const FIELDS_BROWSER_RESET_FIELDS = | ||
'[data-test-subj="timeline"] [data-test-subj="reset-fields"]'; |
18 changes: 18 additions & 0 deletions
18
x-pack/legacy/plugins/siem/cypress/screens/timeline/main.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,18 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
/** The `Timeline ^` button that toggles visibility of the Timeline */ | ||
export const TIMELINE_TOGGLE_BUTTON = '[data-test-subj="flyoutOverlay"]'; | ||
|
||
/** Contains the KQL bar for searching or filtering in the timeline */ | ||
export const SEARCH_OR_FILTER_CONTAINER = | ||
'[data-test-subj="timeline-search-or-filter-search-container"]'; | ||
|
||
export const TIMELINE_FIELDS_BUTTON = | ||
'[data-test-subj="timeline"] [data-test-subj="show-field-browser"]'; | ||
|
||
/** The total server-side count of the events matching the timeline's search criteria */ | ||
export const SERVER_SIDE_EVENT_COUNT = '[data-test-subj="server-side-event-count"]'; |
Oops, something went wrong.