mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* updates KQL_SEARCH_BAR locator * updates HEADER_SUBTITLE locator * waits for the events to be loaded
This commit is contained in:
parent
cbcf601720
commit
3f648dff1c
2 changed files with 7 additions and 2 deletions
|
@ -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');
|
||||
};
|
||||
|
||||
|
|
|
@ -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"]';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue