diff --git a/package.json b/package.json index 9f4d4450f459d..7c82bf8d6f881 100644 --- a/package.json +++ b/package.json @@ -283,7 +283,6 @@ }, "devDependencies": { "@babel/parser": "^7.5.5", - "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/types": "^7.5.5", "@elastic/elasticsearch": "^7.4.0", "@elastic/eslint-config-kibana": "0.15.0", @@ -390,7 +389,6 @@ "axe-core": "^3.4.1", "babel-eslint": "^10.0.3", "babel-jest": "^24.9.0", - "babel-plugin-dynamic-import-node": "^2.3.0", "babel-plugin-istanbul": "^5.2.0", "backport": "4.9.0", "chai": "3.5.0", diff --git a/src/core/public/overlays/flyout/__snapshots__/flyout_service.test.tsx.snap b/src/core/public/overlays/flyout/__snapshots__/flyout_service.test.tsx.snap index 9bd686776138f..6b4b22b8541bc 100644 --- a/src/core/public/overlays/flyout/__snapshots__/flyout_service.test.tsx.snap +++ b/src/core/public/overlays/flyout/__snapshots__/flyout_service.test.tsx.snap @@ -31,7 +31,7 @@ Array [ ] `; -exports[`FlyoutService openFlyout() renders a flyout to the DOM 2`] = `"
Flyout content
"`; +exports[`FlyoutService openFlyout() renders a flyout to the DOM 2`] = `"
Flyout content
"`; exports[`FlyoutService openFlyout() with a currently active flyout replaces the current flyout with a new one 1`] = ` Array [ @@ -74,4 +74,4 @@ Array [ ] `; -exports[`FlyoutService openFlyout() with a currently active flyout replaces the current flyout with a new one 2`] = `"
Flyout content 2
"`; +exports[`FlyoutService openFlyout() with a currently active flyout replaces the current flyout with a new one 2`] = `"
Flyout content 2
"`; diff --git a/src/core/public/overlays/modal/__snapshots__/modal_service.test.tsx.snap b/src/core/public/overlays/modal/__snapshots__/modal_service.test.tsx.snap index ca044aa5c111f..b17e7d0fec773 100644 --- a/src/core/public/overlays/modal/__snapshots__/modal_service.test.tsx.snap +++ b/src/core/public/overlays/modal/__snapshots__/modal_service.test.tsx.snap @@ -31,7 +31,7 @@ Array [ ] `; -exports[`ModalService openConfirm() renders a mountpoint confirm message 2`] = `"
Modal content
"`; +exports[`ModalService openConfirm() renders a mountpoint confirm message 2`] = `"
Modal content
"`; exports[`ModalService openConfirm() renders a string confirm message 1`] = ` Array [ @@ -53,7 +53,7 @@ Array [ ] `; -exports[`ModalService openConfirm() renders a string confirm message 2`] = `"

Some message

"`; +exports[`ModalService openConfirm() renders a string confirm message 2`] = `"

Some message

"`; exports[`ModalService openConfirm() with a currently active confirm replaces the current confirm with the new one 1`] = ` Array [ @@ -145,7 +145,7 @@ Array [ ] `; -exports[`ModalService openModal() renders a modal to the DOM 2`] = `"
Modal content
"`; +exports[`ModalService openModal() renders a modal to the DOM 2`] = `"
Modal content
"`; exports[`ModalService openModal() with a currently active confirm replaces the current confirm with the new one 1`] = ` Array [ diff --git a/src/dev/jest/babel_transform.js b/src/dev/jest/babel_transform.js index cb9f3032b2857..4ddfb5889c092 100644 --- a/src/dev/jest/babel_transform.js +++ b/src/dev/jest/babel_transform.js @@ -32,9 +32,4 @@ module.exports = babelJest.createTransformer({ }, ], ], - plugins: [ - // enables jest to parse and execute dynamic import() calls - '@babel/plugin-syntax-dynamic-import', - 'dynamic-import-node', - ], }); diff --git a/src/dev/jest/config.js b/src/dev/jest/config.js index e54384be7323f..8078c32b10646 100644 --- a/src/dev/jest/config.js +++ b/src/dev/jest/config.js @@ -53,6 +53,8 @@ export default { '!src/legacy/ui/public/{agg_types,vis}/**/*.d.ts', ], moduleNameMapper: { + '@elastic/eui$': '/node_modules/@elastic/eui/test-env', + '@elastic/eui/lib/(.*)?': '/node_modules/@elastic/eui/test-env/$1', '^src/plugins/(.*)': '/src/plugins/$1', '^plugins/([^/.]*)(.*)': '/src/legacy/core_plugins/$1/public$2', '^ui/(.*)': '/src/legacy/ui/public/$1', @@ -88,9 +90,9 @@ export default { '^.+\\.html?$': 'jest-raw-loader', }, transformIgnorePatterns: [ - // ignore all node_modules except @elastic/eui and monaco-editor which both require babel transforms to handle dynamic import() + // ignore all node_modules except monaco-editor which requires babel transforms to handle dynamic import() // since ESM modules are not natively supported in Jest yet (https://github.com/facebook/jest/issues/4842) - '[/\\\\]node_modules(?![\\/\\\\]@elastic[\\/\\\\]eui)(?![\\/\\\\]monaco-editor)[/\\\\].+\\.js$', + '[/\\\\]node_modules(?![\\/\\\\]monaco-editor)[/\\\\].+\\.js$', 'packages/kbn-pm/dist/index.js', ], snapshotSerializers: [ diff --git a/src/legacy/core_plugins/kibana/public/dashboard/np_ready/__snapshots__/dashboard_empty_screen.test.tsx.snap b/src/legacy/core_plugins/kibana/public/dashboard/np_ready/__snapshots__/dashboard_empty_screen.test.tsx.snap index c9f56dc898381..e71e4f1b15134 100644 --- a/src/legacy/core_plugins/kibana/public/dashboard/np_ready/__snapshots__/dashboard_empty_screen.test.tsx.snap +++ b/src/legacy/core_plugins/kibana/public/dashboard/np_ready/__snapshots__/dashboard_empty_screen.test.tsx.snap @@ -687,25 +687,12 @@ exports[`DashboardEmptyScreen renders correctly with visualize paragraph 1`] = ` size="m" type="arrowDown" > - - - + @@ -50,15 +43,8 @@ exports[`FieldName renders a number field by providing a field record, useShortD class="euiToken euiToken--euiColorVis0 euiToken--square euiToken--light euiToken--small kbnFieldIcon" title="Number field" > - @@ -88,15 +74,8 @@ exports[`FieldName renders a string field by providing fieldType and fieldName 1 class="euiToken euiToken--euiColorVis1 euiToken--square euiToken--light euiToken--small kbnFieldIcon" title="String field" > - diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/indexed_fields_table/components/table/__jest__/__snapshots__/table.test.js.snap b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/indexed_fields_table/components/table/__jest__/__snapshots__/table.test.js.snap index 651cade244a20..49f3b83ca2879 100644 --- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/indexed_fields_table/components/table/__jest__/__snapshots__/table.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/indexed_fields_table/components/table/__jest__/__snapshots__/table.test.js.snap @@ -135,13 +135,10 @@ exports[`Table should render normally 1`] = ` exports[`Table should render the boolean template (false) 1`] = ``; exports[`Table should render the boolean template (true) 1`] = ` - `; diff --git a/src/legacy/core_plugins/vis_type_vislib/public/vislib/components/legend/__snapshots__/legend.test.tsx.snap b/src/legacy/core_plugins/vis_type_vislib/public/vislib/components/legend/__snapshots__/legend.test.tsx.snap index c2bac1c1e706a..8a90ff8982732 100644 --- a/src/legacy/core_plugins/vis_type_vislib/public/vislib/components/legend/__snapshots__/legend.test.tsx.snap +++ b/src/legacy/core_plugins/vis_type_vislib/public/vislib/components/legend/__snapshots__/legend.test.tsx.snap @@ -1,5 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`VisLegend Component Legend closed should match the snapshot 1`] = `"
"`; +exports[`VisLegend Component Legend closed should match the snapshot 1`] = `"
"`; -exports[`VisLegend Component Legend open should match the snapshot 1`] = `"
"`; +exports[`VisLegend Component Legend open should match the snapshot 1`] = `"
"`; diff --git a/src/legacy/core_plugins/visualizations/public/np_ready/public/components/__snapshots__/visualization_noresults.test.js.snap b/src/legacy/core_plugins/visualizations/public/np_ready/public/components/__snapshots__/visualization_noresults.test.js.snap index 336b39cf15879..afaea0d9b8462 100644 --- a/src/legacy/core_plugins/visualizations/public/np_ready/public/components/__snapshots__/visualization_noresults.test.js.snap +++ b/src/legacy/core_plugins/visualizations/public/np_ready/public/components/__snapshots__/visualization_noresults.test.js.snap @@ -16,15 +16,10 @@ exports[`VisualizationNoResults should render according to snapshot 1`] = `
-
-
-
-
@@ -242,15 +232,9 @@ exports[`NewVisModal filter for visualization types should render as expected 1` class="euiFormControlLayoutClearButton" type="button" > -
@@ -292,15 +276,10 @@ exports[`NewVisModal filter for visualization types should render as expected 1` class="euiBetaBadge euiBetaBadge--iconOnly euiKeyPadMenuItem__betaBadge" tabindex="0" > - @@ -308,15 +287,10 @@ exports[`NewVisModal filter for visualization types should render as expected 1`
-

-

-

-

-
@@ -592,15 +546,9 @@ exports[`NewVisModal filter for visualization types should render as expected 1` class="euiFormControlLayoutClearButton" type="button" > - @@ -642,15 +590,10 @@ exports[`NewVisModal filter for visualization types should render as expected 1` class="euiBetaBadge euiBetaBadge--iconOnly euiKeyPadMenuItem__betaBadge" tabindex="0" > -
@@ -658,15 +601,10 @@ exports[`NewVisModal filter for visualization types should render as expected 1`
-

-

-

-

-
@@ -882,15 +800,9 @@ exports[`NewVisModal filter for visualization types should render as expected 1` class="euiFormControlLayoutClearButton" type="button" > - @@ -932,15 +844,10 @@ exports[`NewVisModal filter for visualization types should render as expected 1` class="euiBetaBadge euiBetaBadge--iconOnly euiKeyPadMenuItem__betaBadge" tabindex="0" > - @@ -948,15 +855,10 @@ exports[`NewVisModal filter for visualization types should render as expected 1`
-

-

-

- - - +

@@ -141,16 +135,10 @@ exports[`Storyshots arguments/AxisConfig/components extended 1`] = ` - diff --git a/x-pack/legacy/plugins/canvas/canvas_plugin_src/uis/arguments/date_format/__examples__/__snapshots__/date_format.stories.storyshot b/x-pack/legacy/plugins/canvas/canvas_plugin_src/uis/arguments/date_format/__examples__/__snapshots__/date_format.stories.storyshot index 014c365055fa3..c71d7a5990c74 100644 --- a/x-pack/legacy/plugins/canvas/canvas_plugin_src/uis/arguments/date_format/__examples__/__snapshots__/date_format.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/canvas_plugin_src/uis/arguments/date_format/__examples__/__snapshots__/date_format.stories.storyshot @@ -42,16 +42,10 @@ Array [ - @@ -120,16 +114,10 @@ Array [ - @@ -197,16 +185,10 @@ exports[`Storyshots arguments/DateFormat with preset format 1`] = ` - diff --git a/x-pack/legacy/plugins/canvas/canvas_plugin_src/uis/arguments/number_format/__examples__/__snapshots__/number_format.stories.storyshot b/x-pack/legacy/plugins/canvas/canvas_plugin_src/uis/arguments/number_format/__examples__/__snapshots__/number_format.stories.storyshot index e93ad3be31f1d..4ce238e6ea14f 100644 --- a/x-pack/legacy/plugins/canvas/canvas_plugin_src/uis/arguments/number_format/__examples__/__snapshots__/number_format.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/canvas_plugin_src/uis/arguments/number_format/__examples__/__snapshots__/number_format.stories.storyshot @@ -52,16 +52,10 @@ Array [ - @@ -140,16 +134,10 @@ Array [ - @@ -227,16 +215,10 @@ exports[`Storyshots arguments/NumberFormat with preset format 1`] = ` - diff --git a/x-pack/legacy/plugins/canvas/public/components/asset_manager/__examples__/__snapshots__/asset.examples.storyshot b/x-pack/legacy/plugins/canvas/public/components/asset_manager/__examples__/__snapshots__/asset.examples.storyshot index 35de0fb665be1..5cb64964ee38f 100644 --- a/x-pack/legacy/plugins/canvas/public/components/asset_manager/__examples__/__snapshots__/asset.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/asset_manager/__examples__/__snapshots__/asset.examples.storyshot @@ -74,16 +74,11 @@ exports[`Storyshots components/Assets/Asset airplane 1`] = ` onFocus={[Function]} type="button" > - @@ -108,16 +103,11 @@ exports[`Storyshots components/Assets/Asset airplane 1`] = ` className="euiButtonIcon euiButtonIcon--primary" type="button" > - @@ -143,16 +133,11 @@ exports[`Storyshots components/Assets/Asset airplane 1`] = ` className="euiButtonIcon euiButtonIcon--primary" type="button" > - @@ -174,16 +159,11 @@ exports[`Storyshots components/Assets/Asset airplane 1`] = ` onFocus={[Function]} type="button" > - @@ -268,16 +248,11 @@ exports[`Storyshots components/Assets/Asset marker 1`] = ` onFocus={[Function]} type="button" > - @@ -302,16 +277,11 @@ exports[`Storyshots components/Assets/Asset marker 1`] = ` className="euiButtonIcon euiButtonIcon--primary" type="button" > - @@ -337,16 +307,11 @@ exports[`Storyshots components/Assets/Asset marker 1`] = ` className="euiButtonIcon euiButtonIcon--primary" type="button" > - @@ -368,16 +333,11 @@ exports[`Storyshots components/Assets/Asset marker 1`] = ` onFocus={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/public/components/color_dot/__examples__/__snapshots__/color_dot.stories.storyshot b/x-pack/legacy/plugins/canvas/public/components/color_dot/__examples__/__snapshots__/color_dot.stories.storyshot index 77359957b8443..7368a457766ac 100644 --- a/x-pack/legacy/plugins/canvas/public/components/color_dot/__examples__/__snapshots__/color_dot.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/color_dot/__examples__/__snapshots__/color_dot.stories.storyshot @@ -126,20 +126,9 @@ Array [ } } > - , @@ -157,20 +146,9 @@ Array [ } } > - , @@ -188,20 +166,9 @@ Array [ } } > - , @@ -219,20 +186,9 @@ Array [ } } > - , diff --git a/x-pack/legacy/plugins/canvas/public/components/color_manager/__examples__/__snapshots__/color_manager.stories.storyshot b/x-pack/legacy/plugins/canvas/public/components/color_manager/__examples__/__snapshots__/color_manager.stories.storyshot index 5da0ea8738c37..89c8d1b8b1716 100644 --- a/x-pack/legacy/plugins/canvas/public/components/color_manager/__examples__/__snapshots__/color_manager.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/color_manager/__examples__/__snapshots__/color_manager.stories.storyshot @@ -388,16 +388,11 @@ exports[`Storyshots components/Color/ColorManager interactive 1`] = ` onClick={[Function]} type="button" > - @@ -808,16 +798,11 @@ Array [ onClick={[Function]} type="button" > - @@ -897,16 +877,11 @@ Array [ onClick={[Function]} type="button" > - @@ -986,16 +956,11 @@ Array [ onClick={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/public/components/color_palette/__examples__/__snapshots__/color_palette.stories.storyshot b/x-pack/legacy/plugins/canvas/public/components/color_palette/__examples__/__snapshots__/color_palette.stories.storyshot index 8610ed2f1b4a3..4ad0570c68df2 100644 --- a/x-pack/legacy/plugins/canvas/public/components/color_palette/__examples__/__snapshots__/color_palette.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/color_palette/__examples__/__snapshots__/color_palette.stories.storyshot @@ -376,20 +376,10 @@ Array [ } } > - @@ -739,20 +729,10 @@ exports[`Storyshots components/Color/ColorPalette six colors, wrap at 4 1`] = ` } } > - @@ -1022,20 +1002,10 @@ Array [ } } > - diff --git a/x-pack/legacy/plugins/canvas/public/components/color_picker/__examples__/__snapshots__/color_picker.stories.storyshot b/x-pack/legacy/plugins/canvas/public/components/color_picker/__examples__/__snapshots__/color_picker.stories.storyshot index 5fbb4ee7d584d..972e707fc3441 100644 --- a/x-pack/legacy/plugins/canvas/public/components/color_picker/__examples__/__snapshots__/color_picker.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/color_picker/__examples__/__snapshots__/color_picker.stories.storyshot @@ -225,16 +225,11 @@ exports[`Storyshots components/Color/ColorPicker interactive 1`] = ` onClick={[Function]} type="button" > - @@ -315,20 +305,10 @@ exports[`Storyshots components/Color/ColorPicker six colors 1`] = ` } } > - @@ -526,16 +506,11 @@ exports[`Storyshots components/Color/ColorPicker six colors 1`] = ` onClick={[Function]} type="button" > - @@ -790,16 +760,11 @@ exports[`Storyshots components/Color/ColorPicker six colors, value missing 1`] = onClick={[Function]} type="button" > - @@ -859,20 +819,10 @@ exports[`Storyshots components/Color/ColorPicker three colors 1`] = ` } } > - @@ -989,16 +939,11 @@ exports[`Storyshots components/Color/ColorPicker three colors 1`] = ` onClick={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/public/components/custom_element_modal/__examples__/__snapshots__/custom_element_modal.examples.storyshot b/x-pack/legacy/plugins/canvas/public/components/custom_element_modal/__examples__/__snapshots__/custom_element_modal.examples.storyshot index a469f03a71e3e..61ffc33cd9dde 100644 --- a/x-pack/legacy/plugins/canvas/public/components/custom_element_modal/__examples__/__snapshots__/custom_element_modal.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/custom_element_modal/__examples__/__snapshots__/custom_element_modal.examples.storyshot @@ -54,16 +54,11 @@ Array [ onClick={[Function]} type="button" > -
-
-
-
-
-
-
-
-
-
-
-
-
-
- @@ -57,16 +52,11 @@ exports[`Storyshots components/Elements/ElementControls has two buttons 1`] = ` onFocus={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/public/components/element_types/__examples__/__snapshots__/element_grid.stories.storyshot b/x-pack/legacy/plugins/canvas/public/components/element_types/__examples__/__snapshots__/element_grid.stories.storyshot index 3a52402400822..6572aa582f48c 100644 --- a/x-pack/legacy/plugins/canvas/public/components/element_types/__examples__/__snapshots__/element_grid.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/element_types/__examples__/__snapshots__/element_grid.stories.storyshot @@ -74,16 +74,11 @@ exports[`Storyshots components/Elements/ElementGrid with controls 1`] = ` onFocus={[Function]} type="button" > - @@ -104,16 +99,11 @@ exports[`Storyshots components/Elements/ElementGrid with controls 1`] = ` onFocus={[Function]} type="button" > - @@ -183,16 +173,11 @@ exports[`Storyshots components/Elements/ElementGrid with controls 1`] = ` onFocus={[Function]} type="button" > - @@ -213,16 +198,11 @@ exports[`Storyshots components/Elements/ElementGrid with controls 1`] = ` onFocus={[Function]} type="button" > - @@ -292,16 +272,11 @@ exports[`Storyshots components/Elements/ElementGrid with controls 1`] = ` onFocus={[Function]} type="button" > - @@ -322,16 +297,11 @@ exports[`Storyshots components/Elements/ElementGrid with controls 1`] = ` onFocus={[Function]} type="button" > - @@ -416,16 +386,11 @@ exports[`Storyshots components/Elements/ElementGrid with controls and filter 1`] onFocus={[Function]} type="button" > - @@ -446,16 +411,11 @@ exports[`Storyshots components/Elements/ElementGrid with controls and filter 1`] onFocus={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/public/components/file_upload/__snapshots__/file_upload.stories.storyshot b/x-pack/legacy/plugins/canvas/public/components/file_upload/__snapshots__/file_upload.stories.storyshot index 7f18c2dc85215..da8c4b6768714 100644 --- a/x-pack/legacy/plugins/canvas/public/components/file_upload/__snapshots__/file_upload.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/file_upload/__snapshots__/file_upload.stories.storyshot @@ -19,16 +19,11 @@ exports[`Storyshots components/FileUpload default 1`] = `
-
-
@@ -128,16 +122,10 @@ exports[`Storyshots components/FontPicker with value 1`] = ` -
diff --git a/x-pack/legacy/plugins/canvas/public/components/item_grid/__examples__/__snapshots__/item_grid.stories.storyshot b/x-pack/legacy/plugins/canvas/public/components/item_grid/__examples__/__snapshots__/item_grid.stories.storyshot index 5ee984885bbc0..4796cf9742dd9 100644 --- a/x-pack/legacy/plugins/canvas/public/components/item_grid/__examples__/__snapshots__/item_grid.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/item_grid/__examples__/__snapshots__/item_grid.stories.storyshot @@ -70,20 +70,9 @@ exports[`Storyshots components/ItemGrid complex grid 1`] = ` } } > -
@@ -101,20 +90,9 @@ exports[`Storyshots components/ItemGrid complex grid 1`] = ` } } > -
@@ -132,20 +110,9 @@ exports[`Storyshots components/ItemGrid complex grid 1`] = ` } } > -
@@ -156,38 +123,14 @@ exports[`Storyshots components/ItemGrid icon grid 1`] = `
- - -
`; diff --git a/x-pack/legacy/plugins/canvas/public/components/keyboard_shortcuts_doc/__examples__/__snapshots__/keyboard_shortcuts_doc.stories.storyshot b/x-pack/legacy/plugins/canvas/public/components/keyboard_shortcuts_doc/__examples__/__snapshots__/keyboard_shortcuts_doc.stories.storyshot index 9954ae0147a97..503677687ba12 100644 --- a/x-pack/legacy/plugins/canvas/public/components/keyboard_shortcuts_doc/__examples__/__snapshots__/keyboard_shortcuts_doc.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/keyboard_shortcuts_doc/__examples__/__snapshots__/keyboard_shortcuts_doc.stories.storyshot @@ -54,16 +54,11 @@ exports[`Storyshots components/KeyboardShortcutsDoc default 1`] = ` onClick={[Function]} type="button" > -
- @@ -85,16 +80,11 @@ exports[`Storyshots components/Sidebar/SidebarHeader default 1`] = ` onFocus={[Function]} type="button" > - @@ -149,16 +139,11 @@ exports[`Storyshots components/Sidebar/SidebarHeader without layer controls 1`] onFocus={[Function]} type="button" > - @@ -192,16 +177,11 @@ exports[`Storyshots components/Sidebar/SidebarHeader without layer controls 1`] onFocus={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/public/components/tag/__examples__/__snapshots__/tag.stories.storyshot b/x-pack/legacy/plugins/canvas/public/components/tag/__examples__/__snapshots__/tag.stories.storyshot index 754724a957e2d..181d8b867edf0 100644 --- a/x-pack/legacy/plugins/canvas/public/components/tag/__examples__/__snapshots__/tag.stories.storyshot +++ b/x-pack/legacy/plugins/canvas/public/components/tag/__examples__/__snapshots__/tag.stories.storyshot @@ -54,20 +54,9 @@ exports[`Storyshots components/Tags/Tag as health 1`] = `
-
-
-
-
-
- - diff --git a/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/container_style/__examples__/__snapshots__/extended_template.examples.storyshot b/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/container_style/__examples__/__snapshots__/extended_template.examples.storyshot index 649d11cb2dbab..298c2482e6093 100644 --- a/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/container_style/__examples__/__snapshots__/extended_template.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/container_style/__examples__/__snapshots__/extended_template.examples.storyshot @@ -138,16 +138,10 @@ exports[`Storyshots arguments/ContainerStyle extended 1`] = ` -
@@ -208,16 +202,10 @@ exports[`Storyshots arguments/ContainerStyle extended 1`] = ` -
@@ -368,16 +356,10 @@ exports[`Storyshots arguments/ContainerStyle extended 1`] = ` -
@@ -629,16 +611,10 @@ exports[`Storyshots arguments/ContainerStyle/components appearance form 1`] = ` -
@@ -699,16 +675,10 @@ exports[`Storyshots arguments/ContainerStyle/components appearance form 1`] = ` - @@ -858,16 +828,10 @@ exports[`Storyshots arguments/ContainerStyle/components border form 1`] = ` - @@ -1130,16 +1094,10 @@ exports[`Storyshots arguments/ContainerStyle/components extended template 1`] = - @@ -1200,16 +1158,10 @@ exports[`Storyshots arguments/ContainerStyle/components extended template 1`] = - @@ -1360,16 +1312,10 @@ exports[`Storyshots arguments/ContainerStyle/components extended template 1`] = - diff --git a/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/series_style/__examples__/__snapshots__/extended_template.examples.storyshot b/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/series_style/__examples__/__snapshots__/extended_template.examples.storyshot index 8fa2d406831a4..4dbcc1bb33045 100644 --- a/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/series_style/__examples__/__snapshots__/extended_template.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/series_style/__examples__/__snapshots__/extended_template.examples.storyshot @@ -65,16 +65,10 @@ exports[`Storyshots arguments/SeriesStyle extended 1`] = ` - @@ -163,16 +157,10 @@ exports[`Storyshots arguments/SeriesStyle extended 1`] = ` - @@ -253,16 +241,10 @@ exports[`Storyshots arguments/SeriesStyle extended 1`] = ` - @@ -343,16 +325,10 @@ exports[`Storyshots arguments/SeriesStyle extended 1`] = ` - diff --git a/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/series_style/__examples__/__snapshots__/simple_template.examples.storyshot b/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/series_style/__examples__/__snapshots__/simple_template.examples.storyshot index 72477cec2603b..14466cab1a698 100644 --- a/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/series_style/__examples__/__snapshots__/simple_template.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/public/expression_types/arg_types/series_style/__examples__/__snapshots__/simple_template.examples.storyshot @@ -172,20 +172,13 @@ exports[`Storyshots arguments/SeriesStyle/components simple: no series 1`] = ` onMouseOut={[Function]} onMouseOver={[Function]} > - diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/api/__tests__/__snapshots__/shareable.test.tsx.snap b/x-pack/legacy/plugins/canvas/shareable_runtime/api/__tests__/__snapshots__/shareable.test.tsx.snap index e5e13671057bd..0b55f2c322761 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/api/__tests__/__snapshots__/shareable.test.tsx.snap +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/api/__tests__/__snapshots__/shareable.test.tsx.snap @@ -9,7 +9,7 @@ exports[`Canvas Shareable Workpad API Placed successfully with default propertie
markdown mock
markdown mock
My Canvas Workpad
" +
markdown mock
My Canvas Workpad
" `; exports[`Canvas Shareable Workpad API Placed successfully with height specified 1`] = `"
"`; @@ -21,7 +21,7 @@ exports[`Canvas Shareable Workpad API Placed successfully with height specified
markdown mock
markdown mock
My Canvas Workpad
" +
markdown mock
My Canvas Workpad
" `; exports[`Canvas Shareable Workpad API Placed successfully with page specified 1`] = `"
"`; @@ -33,7 +33,7 @@ exports[`Canvas Shareable Workpad API Placed successfully with page specified 2`
markdown mock
markdown mock
My Canvas Workpad
" +
markdown mock
My Canvas Workpad
" `; exports[`Canvas Shareable Workpad API Placed successfully with width and height specified 1`] = `"
"`; @@ -45,7 +45,7 @@ exports[`Canvas Shareable Workpad API Placed successfully with width and height
markdown mock
markdown mock
My Canvas Workpad
" +
markdown mock
My Canvas Workpad
" `; exports[`Canvas Shareable Workpad API Placed successfully with width specified 1`] = `"
"`; @@ -57,5 +57,5 @@ exports[`Canvas Shareable Workpad API Placed successfully with width specified 2
markdown mock
markdown mock
My Canvas Workpad
" +
markdown mock
My Canvas Workpad
" `; diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/components/__examples__/__snapshots__/canvas.examples.storyshot b/x-pack/legacy/plugins/canvas/shareable_runtime/components/__examples__/__snapshots__/canvas.examples.storyshot index 6a33dba76c126..81e75ff5ee0d9 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/components/__examples__/__snapshots__/canvas.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/components/__examples__/__snapshots__/canvas.examples.storyshot @@ -1324,16 +1324,9 @@ exports[`Storyshots shareables/Canvas component 1`] = ` rel="" title="Powered by Elastic.co" > - @@ -1387,16 +1380,11 @@ exports[`Storyshots shareables/Canvas component 1`] = ` onClick={[Function]} type="button" > - @@ -1441,16 +1429,11 @@ exports[`Storyshots shareables/Canvas component 1`] = ` onClick={[Function]} type="button" > - @@ -1479,16 +1462,11 @@ exports[`Storyshots shareables/Canvas component 1`] = ` onClick={[Function]} type="button" > - @@ -2828,16 +2806,9 @@ exports[`Storyshots shareables/Canvas contextual: austin 1`] = ` rel="" title="Powered by Elastic.co" > - @@ -2891,16 +2862,11 @@ exports[`Storyshots shareables/Canvas contextual: austin 1`] = ` onClick={[Function]} type="button" > - @@ -2945,16 +2911,11 @@ exports[`Storyshots shareables/Canvas contextual: austin 1`] = ` onClick={[Function]} type="button" > - @@ -2983,16 +2944,11 @@ exports[`Storyshots shareables/Canvas contextual: austin 1`] = ` onClick={[Function]} type="button" > - @@ -3148,16 +3104,9 @@ exports[`Storyshots shareables/Canvas contextual: hello 1`] = ` rel="" title="Powered by Elastic.co" > - @@ -3211,16 +3160,11 @@ exports[`Storyshots shareables/Canvas contextual: hello 1`] = ` onClick={[Function]} type="button" > - @@ -3264,16 +3208,11 @@ exports[`Storyshots shareables/Canvas contextual: hello 1`] = ` onClick={[Function]} type="button" > - @@ -3302,16 +3241,11 @@ exports[`Storyshots shareables/Canvas contextual: hello 1`] = ` onClick={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/components/__tests__/__snapshots__/app.test.tsx.snap b/x-pack/legacy/plugins/canvas/shareable_runtime/components/__tests__/__snapshots__/app.test.tsx.snap index 052ecf95dd9ec..6de8ad9f38baf 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/components/__tests__/__snapshots__/app.test.tsx.snap +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/components/__tests__/__snapshots__/app.test.tsx.snap @@ -7,5 +7,5 @@ exports[` App renders properly 1`] = `
markdown mock
markdown mock
My Canvas Workpad
" +
markdown mock
My Canvas Workpad
" `; diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/footer.examples.storyshot b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/footer.examples.storyshot index 7b3ac299f80ad..6ff39b723a49a 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/footer.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/footer.examples.storyshot @@ -1277,16 +1277,9 @@ exports[`Storyshots shareables/Footer contextual: austin 1`] = ` rel="" title="Powered by Elastic.co" > - @@ -1340,16 +1333,11 @@ exports[`Storyshots shareables/Footer contextual: austin 1`] = ` onClick={[Function]} type="button" > - @@ -1394,16 +1382,11 @@ exports[`Storyshots shareables/Footer contextual: austin 1`] = ` onClick={[Function]} type="button" > - @@ -1432,16 +1415,11 @@ exports[`Storyshots shareables/Footer contextual: austin 1`] = ` onClick={[Function]} type="button" > - @@ -1551,16 +1529,9 @@ exports[`Storyshots shareables/Footer contextual: hello 1`] = ` rel="" title="Powered by Elastic.co" > - @@ -1614,16 +1585,11 @@ exports[`Storyshots shareables/Footer contextual: hello 1`] = ` onClick={[Function]} type="button" > - @@ -1667,16 +1633,11 @@ exports[`Storyshots shareables/Footer contextual: hello 1`] = ` onClick={[Function]} type="button" > - @@ -1705,16 +1666,11 @@ exports[`Storyshots shareables/Footer contextual: hello 1`] = ` onClick={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/page_controls.examples.storyshot b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/page_controls.examples.storyshot index cf68c7a6075d6..18eedea470c38 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/page_controls.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/page_controls.examples.storyshot @@ -28,16 +28,11 @@ exports[`Storyshots shareables/Footer/PageControls component 1`] = ` onClick={[Function]} type="button" > - @@ -82,16 +77,11 @@ exports[`Storyshots shareables/Footer/PageControls component 1`] = ` onClick={[Function]} type="button" > - @@ -132,16 +122,11 @@ exports[`Storyshots shareables/Footer/PageControls contextual: austin 1`] = ` onClick={[Function]} type="button" > - @@ -186,16 +171,11 @@ exports[`Storyshots shareables/Footer/PageControls contextual: austin 1`] = ` onClick={[Function]} type="button" > - @@ -236,16 +216,11 @@ exports[`Storyshots shareables/Footer/PageControls contextual: hello 1`] = ` onClick={[Function]} type="button" > - @@ -290,16 +265,11 @@ exports[`Storyshots shareables/Footer/PageControls contextual: hello 1`] = ` onClick={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/title.examples.storyshot b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/title.examples.storyshot index e8fb42c5921d7..8d43fbf83bcd0 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/title.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/__examples__/__snapshots__/title.examples.storyshot @@ -31,16 +31,9 @@ exports[`Storyshots shareables/Footer/Title component 1`] = ` rel="" title="Powered by Elastic.co" > - @@ -102,16 +95,9 @@ exports[`Storyshots shareables/Footer/Title contextual: austin 1`] = ` rel="" title="Powered by Elastic.co" > - @@ -173,16 +159,9 @@ exports[`Storyshots shareables/Footer/Title contextual: hello 1`] = ` rel="" title="Powered by Elastic.co" > - diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/autoplay_settings.examples.storyshot b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/autoplay_settings.examples.storyshot index a90c565cd91a7..201592df65a20 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/autoplay_settings.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/autoplay_settings.examples.storyshot @@ -44,27 +44,15 @@ exports[`Storyshots shareables/Footer/Settings/AutoplaySettings component: off, - - @@ -219,27 +207,15 @@ exports[`Storyshots shareables/Footer/Settings/AutoplaySettings component: on, 5 - - @@ -394,27 +370,15 @@ exports[`Storyshots shareables/Footer/Settings/AutoplaySettings contextual 1`] = - - diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/settings.examples.storyshot b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/settings.examples.storyshot index d35db0f6e84e4..75db465d3f91f 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/settings.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/settings.examples.storyshot @@ -38,16 +38,11 @@ exports[`Storyshots shareables/Footer/Settings component 1`] = ` onClick={[Function]} type="button" > - @@ -95,16 +90,11 @@ exports[`Storyshots shareables/Footer/Settings contextual 1`] = ` onClick={[Function]} type="button" > - diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/toolbar_settings.examples.storyshot b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/toolbar_settings.examples.storyshot index ece411900c2ba..82e7685caaab3 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/toolbar_settings.examples.storyshot +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/toolbar_settings.examples.storyshot @@ -55,27 +55,15 @@ exports[`Storyshots shareables/Footer/Settings/ToolbarSettings component: off 1` - - @@ -155,27 +143,15 @@ exports[`Storyshots shareables/Footer/Settings/ToolbarSettings component: on 1`] - - @@ -255,27 +231,15 @@ exports[`Storyshots shareables/Footer/Settings/ToolbarSettings contextual 1`] = - - diff --git a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__tests__/__snapshots__/settings.test.tsx.snap b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__tests__/__snapshots__/settings.test.tsx.snap index 73d7599a60359..b8bbdc5f0a6dc 100644 --- a/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__tests__/__snapshots__/settings.test.tsx.snap +++ b/x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__tests__/__snapshots__/settings.test.tsx.snap @@ -55,40 +55,19 @@ exports[` can navigate Autoplay Settings 1`] = ` - +
Auto Play - +
@@ -205,40 +163,19 @@ exports[` can navigate Autoplay Settings 2`] = ` - +
Auto Play - +
@@ -299,21 +215,10 @@ exports[` can navigate Autoplay Settings 2`] = ` - +
@@ -347,35 +252,14 @@ exports[` can navigate Autoplay Settings 2`] = ` - - +
+
@@ -540,40 +424,19 @@ exports[` can navigate Toolbar Settings, closes when activated 1`] = - +
Auto Play - +
@@ -690,40 +532,19 @@ exports[` can navigate Toolbar Settings, closes when activated 2`] = - +
Auto Play - +
@@ -784,21 +584,10 @@ exports[` can navigate Toolbar Settings, closes when activated 2`] = - +
@@ -841,35 +630,14 @@ exports[` can navigate Toolbar Settings, closes when activated 2`] = - - +
+
@@ -905,4 +673,4 @@ exports[` can navigate Toolbar Settings, closes when activated 2`] =
`; -exports[` can navigate Toolbar Settings, closes when activated 3`] = `"
Settings
Hide Toolbar
Hide the toolbar when the mouse is not within the Canvas?
"`; +exports[` can navigate Toolbar Settings, closes when activated 3`] = `"
Settings
Hide Toolbar
Hide the toolbar when the mouse is not within the Canvas?
"`; diff --git a/x-pack/legacy/plugins/index_lifecycle_management/__jest__/__snapshots__/extend_index_management.test.js.snap b/x-pack/legacy/plugins/index_lifecycle_management/__jest__/__snapshots__/extend_index_management.test.js.snap index 74c3e7408fe7c..dbdbe2b52bd56 100644 --- a/x-pack/legacy/plugins/index_lifecycle_management/__jest__/__snapshots__/extend_index_management.test.js.snap +++ b/x-pack/legacy/plugins/index_lifecycle_management/__jest__/__snapshots__/extend_index_management.test.js.snap @@ -286,25 +286,12 @@ exports[`extend index management ilm summary extension should return extension w size="m" type="cross" > - - - +