* Upgraded eui version, updated jest snaapshots * Upgrade EUI to v31.10.0 & update tests * increase expected histogram brush size result * revert dev_server snap * update baseline dashboard reporting png * avoid multiple acton menu openings when verified that the action exists and is enabled * update dashboard table expand button * update dashboard tsvb baseline * Adjust 2 cypress tests * snapshot update Co-authored-by: Greg Thompson <thompson.glowe@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
60 lines
2.5 KiB
TypeScript
60 lines
2.5 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { ReactWrapper } from 'enzyme';
|
|
|
|
export const getCanvas = (wrapper: ReactWrapper) => wrapper.find('Canvas > CanvasComponent');
|
|
|
|
export const getFooter = (wrapper: ReactWrapper) => wrapper.find('Footer > FooterComponent');
|
|
|
|
export const getScrubber = (wrapper: ReactWrapper) => wrapper.find('Scrubber > ScrubberComponent');
|
|
|
|
export const getScrubberSlideContainer = (wrapper: ReactWrapper) =>
|
|
getScrubber(wrapper).find('.slideContainer');
|
|
|
|
export const getToolbarPanel = (wrapper: ReactWrapper) =>
|
|
wrapper.find('ToolbarSettings > ToolbarSettingsComponent');
|
|
|
|
export const getToolbarCheckbox = (wrapper: ReactWrapper) =>
|
|
getToolbarPanel(wrapper).find('EuiSwitch').find('button');
|
|
|
|
export const getAutoplayPanel = (wrapper: ReactWrapper) =>
|
|
wrapper.find('AutoplaySettings > AutoplaySettingsComponent');
|
|
|
|
export const getAutoplayCheckbox = (wrapper: ReactWrapper) =>
|
|
getAutoplayPanel(wrapper).find('EuiSwitch').find('button');
|
|
|
|
export const getAutoplayTextField = (wrapper: ReactWrapper) =>
|
|
getAutoplayPanel(wrapper).find('EuiFieldText').find('input[type="text"]');
|
|
|
|
export const getAutoplaySubmit = (wrapper: ReactWrapper) =>
|
|
getAutoplayPanel(wrapper).find('EuiButton');
|
|
|
|
export const getSettingsPanel = (wrapper: ReactWrapper) =>
|
|
wrapper.find('Settings > SettingsComponent');
|
|
|
|
export const getSettingsTrigger = (wrapper: ReactWrapper) =>
|
|
getSettingsPanel(wrapper).find('EuiButtonIcon');
|
|
|
|
export const getPopover = (wrapper: ReactWrapper) => wrapper.find('EuiPopover');
|
|
|
|
export const getPortal = (wrapper: ReactWrapper) => wrapper.find('EuiPortal');
|
|
|
|
export const getContextMenu = (wrapper: ReactWrapper) => wrapper.find('EuiContextMenu');
|
|
|
|
export const getContextMenuItems = (wrapper: ReactWrapper) => wrapper.find('EuiContextMenuItem');
|
|
|
|
export const getPageControlsCenter = (wrapper: ReactWrapper) =>
|
|
wrapper.find('EuiButtonEmpty[data-test-subj="pageControlsCurrentPage"]');
|
|
|
|
export const getPageControlsPrevious = (wrapper: ReactWrapper) =>
|
|
wrapper.find('EuiButtonIcon[data-test-subj="pageControlsPrevPage"]');
|
|
|
|
export const getPageControlsNext = (wrapper: ReactWrapper) =>
|
|
wrapper.find('EuiButtonIcon[data-test-subj="pageControlsNextPage"]');
|
|
|
|
export const getRenderedElement = (wrapper: ReactWrapper) => wrapper.find('.render');
|