import { TimelineFilter } from '../objects/timeline' ; export const ADD_NOTE_BUTTON = '[data-test-subj="add-note"]' ; export const ADD_FILTER = '[data-test-subj="timeline"] [data-test-subj="addFilter"]' ; export const ATTACH_TIMELINE_TO_CASE_BUTTON = '[data-test-subj="attach-timeline-case-button"]' ; export const ATTACH_TIMELINE_TO_NEW_CASE_ICON = '[data-test-subj="attach-timeline-new-case"]' ; export const ATTACH_TIMELINE_TO_EXISTING_CASE_ICON = '[data-test-subj="attach-timeline-existing-case"]' ; export const BULK_ACTIONS = '[data-test-subj="utility-bar-action-button"]' ; export const SELECT_CASE = ( id ) => { return `[data-test-subj="cases-table-row-select-${ id }"]` ; } ; export const CORRELATION_EVENT_TABLE_CELL = '[data-test-subj="eql-events-table"] [data-test-subj="statefulCell"]' ; export const CLOSE_TIMELINE_BTN = '[data-test-subj="close-timeline"]' ; export const COMBO_BOX = '.euiComboBoxOption__content' ; export const COMBO_BOX_INPUT = '[data-test-subj="comboBoxInput"]' ; export const CREATE_NEW_TIMELINE = '[data-test-subj="timeline-new"]' ; export const CREATE_NEW_TIMELINE_TEMPLATE = '[data-test-subj="template-timeline-new"]' ; export const DATA_PROVIDERS = '.field-value' ; export const DATAGRID_HEADERS = '[data-test-subj="events-viewer-panel"] [data-test-subj^="dataGridHeaderCell-"]' ; export const DATE_PICKER_END = '[data-test-subj="superDatePickerendDatePopoverButton"]' ; export const DATE_PICKER_START = '[data-test-subj="superDatePickerstartDatePopoverButton"]' ; export const DELETE_TIMELINE_BTN = '[data-test-subj="delete-timeline"]' ; export const DELETION_CONFIRMATION = '[data-test-subj="confirmModalConfirmButton"]' ; export const DESTINATION_IP_KPI = '[data-test-subj="siem-timeline-destination-ip-kpi"]' ; export const FAVORITE_TIMELINE = '[data-test-subj="timeline-favorite-filled-star"]' ; export const FIELD_BROWSER = '[data-test-subj="show-field-browser"]' ; export const GRAPH_TAB_BUTTON = '[data-test-subj="timelineTabs-graph"]' ; export const HOST_KPI = '[data-test-subj="siem-timeline-host-kpi"]' ; export const ID_HEADER_FIELD = '[data-test-subj="timeline"] [data-test-subj="header-text-_id"]' ; export const ID_TOGGLE_FIELD = '[data-test-subj="toggle-field-_id"]' ; export const ID_HOVER_ACTION_OVERFLOW_BTN = '[data-test-subj="more-actions-_id"]' ; export const LOCKED_ICON = '[data-test-subj="timeline-date-picker-lock-button"]' ; export const UNLOCKED_ICON = '[data-test-subj="timeline-date-picker-unlock-button"]' ; export const NOTES = '[data-test-subj="note-card-body"]' ; export const NOTE_CARD_CONTENT = '[data-test-subj="notes"]' ; export const EVENT_NOTE = '[data-test-subj="timeline-notes-button-small"]' ; export const NOTE_DESCRIPTION = '[data-test-subj="note-preview-description"]' ; export const NOTE_PREVIEW = '[data-test-subj^="note-preview"]' ; export const NOTES_TEXT_AREA = '[data-test-subj="add-a-note"] textarea' ; export const NOTES_TAB_BUTTON = '[data-test-subj="timelineTabs-notes"]' ; export const NOTES_TEXT = '.euiMarkdownFormat' ; export const NOTES_CODE_BLOCK = '.euiCode' ; export const NOTES_AUTHOR = '.euiCommentEvent__headerUsername' ; export const NOTES_LINK = '[data-test-subj="markdown-link"]' ; export const NOTES_COUNT = '[data-test-subj="timeline-notes-count"]' ; export const OPEN_TIMELINE_ICON = '[data-test-subj="open-timeline-button"]' ; export const OPEN_TIMELINE_MODAL = '[data-test-subj="open-timeline-modal"]' ; export const CLOSE_OPEN_TIMELINE_MODAL_BTN = `${ OPEN_TIMELINE_MODAL } > button` ; export const OPEN_TIMELINE_TEMPLATE_ICON = '[data-test-subj="open-timeline-modal-body-filter-template"]' ; export const PIN_EVENT = '[data-test-subj="pin"]' ; export const PINNED_EVENT_TABLE_CELL = '[data-test-subj="pinned-events-table"] [data-test-subj="statefulCell"]' ; export const PINNED_TAB_BUTTON = '[data-test-subj="timelineTabs-pinned"]' ; export const PROCESS_KPI = '[data-test-subj="siem-timeline-process-kpi"' ; export const PROVIDER_BADGE = '[data-test-subj="providerBadge"]' ; export const RESET_FIELDS = '[data-test-subj="fields-browser-container"] [data-test-subj="reset-fields"]' ; export const SAVE_FILTER_BTN = '[data-test-subj="saveFilter"]' ; export const SEARCH_OR_FILTER_CONTAINER = '[data-test-subj="timeline-search-or-filter-search-container"]' ; export const INDICATOR_MATCH_ROW_RENDER = '[data-test-subj="threat-match-row"]' ; export const QUERY_EVENT_TABLE_CELL = '[data-test-subj="query-events-table"] [data-test-subj="statefulCell"]' ; export const QUERY_TAB_BUTTON = '[data-test-subj="timelineTabs-query"]' ; export const SERVER_SIDE_EVENT_COUNT = '[data-test-subj="server-side-event-count"]' ; export const SOURCE_IP_KPI = '[data-test-subj="siem-timeline-source-ip-kpi"]' ; export const STAR_ICON = '[data-test-subj="timeline-favorite-empty-star"]' ; export const TIMELINE_CHANGES_IN_PROGRESS = '[data-test-subj="timeline"] .euiProgress' ; export const TIMELINE_COLUMN_SPINNER = '[data-test-subj="timeline-loading-spinner"]' ; export const TIMELINE_COLLAPSED_ITEMS_BTN = '[data-test-subj="euiCollapsedItemActionsButton"]' ; export const TIMELINE_CREATE_TEMPLATE_FROM_TIMELINE_BTN = '[data-test-subj="create-template-from-timeline"]' ; export const TIMELINE_CREATE_TIMELINE_FROM_TEMPLATE_BTN = '[data-test-subj="create-from-template"]' ; export const TIMELINE_CORRELATION_INPUT = '[data-test-subj="eqlQueryBarTextInput"]' ; export const TIMELINE_CORRELATION_TAB = '[data-test-subj="timelineTabs-eql"]' ; export const TIMELINE_DATA_PROVIDERS_ACTION_MENU = '[data-test-subj="providerActions"]' ; export const TIMELINE_ADD_FIELD_BUTTON = '[data-test-subj="addField"]' ; export const TIMELINE_DATA_PROVIDER_FIELD = '[data-test-subj="field"]' ; export const TIMELINE_DATA_PROVIDER_FIELD_INPUT = '[data-test-subj="comboBoxSearchInput"]' ; export const TIMELINE_DATA_PROVIDER_OPERATOR = `[data-test-subj="operator"]` ; export const TIMELINE_DATA_PROVIDER_VALUE = `[data-test-subj="value"]` ; export const SAVE_DATA_PROVIDER_BTN = `[data-test-subj="save"]` ; export const TIMELINE_DESCRIPTION = '[data-test-subj="timeline-description"]' ; export const TIMELINE_DESCRIPTION_INPUT = '[data-test-subj="save-timeline-description"]' ; export const TIMELINE_DROPPED_DATA_PROVIDERS = '[data-test-subj="providerContainer"]' ; export const TIMELINE_EVENT = '[data-test-subj="event"]' ; export const TIMELINE_EVENTS_COUNT_PER_PAGE = '[data-test-subj="local-events-count"]' ; export const TIMELINE_EVENTS_COUNT_PER_PAGE_BTN = '[data-test-subj="local-events-count-button"]' ; export const TIMELINE_EVENTS_COUNT_PER_PAGE_OPTION = ( itemsPerPage ) => `[data-test-subj="items-per-page-option-${ itemsPerPage }"]` ; export const TIMELINE_EVENTS_COUNT_NEXT_PAGE = '[data-test-subj="timeline"] [data-test-subj="pagination-button-next"]' ; export const TIMELINE_EVENTS_COUNT_PREV_PAGE = '[data-test-subj="timeline"] [data-test-subj="pagination-button-previous"]' ; export const TIMELINE_FIELDS_BUTTON = '[data-test-subj="timeline"] [data-test-subj="show-field-browser"]' ; export const TIMELINE_FILTER = ( filter ) => `[data-test-subj="filter filter-enabled filter-key-${ filter . field } filter-value-${ filter . value } filter-unpinned"]` ; export const TIMELINE_FILTER_FIELD = '[data-test-subj="filterFieldSuggestionList"]' ; export const TIMELINE_TITLE_BY_ID = ( id ) => `[data-test-subj="title-${ id }"]` ; export const TIMELINE_FILTER_OPERATOR = '[data-test-subj="filterOperatorList"]' ; export const TIMELINE_FILTER_VALUE = '[data-test-subj="filterParamsComboBox phraseParamsComboxBox"]' ; export const TIMELINE_FLYOUT = '[data-test-subj="eui-flyout"]' ; export const TIMELINE_FLYOUT_HEADER = '[data-test-subj="query-tab-flyout-header"]' ; export const TIMELINE_FLYOUT_BODY = '[data-test-subj="query-tab-flyout-body"]' ; export const TIMELINE_HEADER = '[data-test-subj="timeline-hide-show-container"]' ; export const TIMELINE_INSPECT_BUTTON = `${ TIMELINE_FLYOUT } [data-test-subj="inspect-icon-button"]` ; export const TIMELINE_PANEL = `[data-test-subj="timeline-flyout-header-panel"]` ; export const TIMELINE_QUERY = '[data-test-subj="timelineQueryInput"]' ; export const TIMELINE_SETTINGS_ICON = '[data-test-subj="settings-plus-in-circle"]' ; export const TIMELINE_SEARCH_OR_FILTER = '[data-test-subj="timeline-select-search-or-filter"]' ; export const TIMELINE_KQLMODE_SEARCH = '[data-test-subj="kqlModePopoverSearch"]' ; export const TIMELINE_KQLMODE_FILTER = '[data-test-subj="kqlModePopoverFilter"]' ; export const TIMELINE_TITLE = '[data-test-subj="timeline-title"]' ; export const TIMELINE_TITLE_INPUT = '[data-test-subj="save-timeline-title"]' ; export const TIMESTAMP_HEADER_FIELD = '[data-test-subj="header-text-@timestamp"]' ; export const TIMESTAMP_TOGGLE_FIELD = '[data-test-subj="toggle-field-@timestamp"]' ; export const TOGGLE_TIMELINE_EXPAND_EVENT = '[data-test-subj="expand-event"]' ; export const TIMELINE_EDIT_MODAL_OPEN_BUTTON = '[data-test-subj="save-timeline-button-icon"]' ; export const TIMELINE_EDIT_MODAL_SAVE_BUTTON = '[data-test-subj="save-button"]' ; export const TIMELINE_EXIT_FULL_SCREEN_BUTTON = '[data-test-subj="exit-full-screen"]' ; export const TIMELINE_FLYOUT_WRAPPER = '[data-test-subj="flyout-pane"]' ; export const TIMELINE_FULL_SCREEN_BUTTON = '[data-test-subj="full-screen-active"]' ; export const TIMELINE_ROW_RENDERERS_MODAL = '[data-test-subj="row-renderers-modal"]' ; export const TIMELINE_ROW_RENDERERS_DISABLE_ALL_BTN = `[data-test-subj="disable-all"]` ; export const TIMELINE_ROW_RENDERERS_ENABLE_ALL_BTN = `button[data-test-subj="enable-alll"]` ; export const TIMELINE_ROW_RENDERERS_MODAL_CLOSE_BUTTON = `${ TIMELINE_ROW_RENDERERS_MODAL } .euiModal__closeIcon` ; export const TIMELINE_ROW_RENDERERS_MODAL_ITEMS_CHECKBOX = `${ TIMELINE_ROW_RENDERERS_MODAL } .euiCheckbox__input` ; export const TIMELINE_ROW_RENDERERS_SEARCHBOX = `${ TIMELINE_ROW_RENDERERS_MODAL } input[type="search"]` ; export const TIMELINE_ROW_RENDERERS_SURICATA_SIGNATURE = `${ TIMELINE_ROW_RENDERERS_MODAL } [data-test-subj="render-content-suricata.eve.alert.signature"]` ; export const TIMELINE_ROW_RENDERERS_SURICATA_LINK_TOOLTIP = `[data-test-subj="externalLinkTooltip"]` ; export const TIMELINE_ROW_RENDERERS_SURICATA_SIGNATURE_TOOLTIP = `[data-test-subj="suricata.eve.alert.signature-tooltip"]` ; export const TIMELINE_SHOW_ROW_RENDERERS_GEAR = '[data-test-subj="show-row-renderers-gear"]' ; export const TIMELINE_TABS = '[data-test-subj="timeline"] .euiTabs' ; export const TIMELINE_TAB_CONTENT_EQL = '[data-test-subj="timeline-tab-content-eql"]' ; export const TIMELINE_TAB_CONTENT_GRAPHS_NOTES = '[data-test-subj="timeline-tab-content-graph-notes"]' ; export const TIMESTAMP_HOVER_ACTION_OVERFLOW_BTN = '[data-test-subj="more-actions-@timestamp"]' ; export const USER_KPI = '[data-test-subj="siem-timeline-user-kpi"]' ;