Skip to content

Commit

Permalink
[SIEM] Events viewer fixes (elastic#50175)
Browse files Browse the repository at this point in the history
* updates KQL_SEARCH_BAR locator

* updates HEADER_SUBTITLE locator

* waits for the events to be loaded
  • Loading branch information
MadameSheema committed Nov 13, 2019
1 parent d7992f9 commit 2316e71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@

import { EVENTS_VIEWER_FIELDS_BUTTON, KQL_SEARCH_BAR } from './selectors';
import { FIELDS_BROWSER_CONTAINER } from '../fields_browser/selectors';
import { SERVER_SIDE_EVENT_COUNT } from '../timeline/selectors';
import { DEFAULT_TIMEOUT } from '../util/helpers';

/** Opens the eventsViewer Field Browser */
export const openEventsViewerFieldsBrowser = () => {
cy.get(EVENTS_VIEWER_FIELDS_BUTTON, { timeout: DEFAULT_TIMEOUT }).click({ force: true });

cy.get(SERVER_SIDE_EVENT_COUNT, { timeout: DEFAULT_TIMEOUT })
.invoke('text')
.should('not.equal', '0');

cy.get(FIELDS_BROWSER_CONTAINER).should('exist');
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export const EVENTS_VIEWER_PANEL = '[data-test-subj="events-viewer-panel"]';
export const EVENTS_VIEWER_FIELDS_BUTTON = `${EVENTS_VIEWER_PANEL} [data-test-subj="show-field-browser-gear"]`;

/** The KQL search bar that exists at the top of most pages */
export const KQL_SEARCH_BAR = '[data-test-subj="kqlInput"]';
export const KQL_SEARCH_BAR = '[data-test-subj="queryInput"]';

/** The Events Viewer Showing N events header subtitle */
export const HEADER_SUBTITLE = `${EVENTS_VIEWER_PANEL} [data-test-subj="subtitle"]`;
export const HEADER_SUBTITLE = `${EVENTS_VIEWER_PANEL} [data-test-subj="header-panel-subtitle"]`;

/** The inspect query modal */
export const INSPECT_MODAL = '[data-test-subj="modal-inspect-euiModal"]';
Expand Down

0 comments on commit 2316e71

Please sign in to comment.