,
@@ -198,12 +198,12 @@ Array [
,
@@ -248,12 +248,12 @@ Array [
,
@@ -345,12 +345,12 @@ Array [
,
@@ -400,12 +400,12 @@ Array [
,
diff --git a/src/components/collapsible_nav/collapsible_nav.test.tsx b/src/components/collapsible_nav/collapsible_nav.test.tsx
index 980559a5562..32f0c401bfa 100644
--- a/src/components/collapsible_nav/collapsible_nav.test.tsx
+++ b/src/components/collapsible_nav/collapsible_nav.test.tsx
@@ -18,8 +18,8 @@
*/
import React from 'react';
-import { render, mount } from 'enzyme';
-import { requiredProps, takeMountedSnapshot } from '../../test';
+import { render } from 'enzyme';
+import { requiredProps } from '../../test/required_props';
import { EuiCollapsibleNav } from './collapsible_nav';
@@ -33,28 +33,20 @@ const propsNeededToRender = { id: 'id', isOpen: true };
describe('EuiCollapsibleNav', () => {
test('is rendered', () => {
- const component = mount(
+ const component = render(
);
- expect(
- takeMountedSnapshot(component, {
- hasArrayOutput: true,
- })
- ).toMatchSnapshot();
+ expect(component).toMatchSnapshot();
});
describe('props', () => {
test('onClose', () => {
- const component = mount(
+ const component = render(
{}} />
);
- expect(
- takeMountedSnapshot(component, {
- hasArrayOutput: true,
- })
- ).toMatchSnapshot();
+ expect(component).toMatchSnapshot();
});
test('isDocked', () => {
@@ -66,31 +58,23 @@ describe('EuiCollapsibleNav', () => {
});
test('dockedBreakpoint', () => {
- const component = mount(
+ const component = render(
);
- expect(
- takeMountedSnapshot(component, {
- hasArrayOutput: true,
- })
- ).toMatchSnapshot();
+ expect(component).toMatchSnapshot();
});
test('button', () => {
- const component = mount(
+ const component = render(
} />
);
- expect(
- takeMountedSnapshot(component, {
- hasArrayOutput: true,
- })
- ).toMatchSnapshot();
+ expect(component).toMatchSnapshot();
});
test('showButtonIfDocked', () => {
- const component = mount(
+ const component = render(
}
@@ -99,55 +83,39 @@ describe('EuiCollapsibleNav', () => {
/>
);
- expect(
- takeMountedSnapshot(component, {
- hasArrayOutput: true,
- })
- ).toMatchSnapshot();
+ expect(component).toMatchSnapshot();
});
test('can alter mask props with maskProps without throwing error', () => {
- const component = mount(
+ const component = render(
);
- expect(
- takeMountedSnapshot(component, {
- hasArrayOutput: true,
- })
- ).toMatchSnapshot();
+ expect(component).toMatchSnapshot();
});
});
describe('close button', () => {
test('can be hidden', () => {
- const component = mount(
+ const component = render(
);
- expect(
- takeMountedSnapshot(component, {
- hasArrayOutput: true,
- })
- ).toMatchSnapshot();
+ expect(component).toMatchSnapshot();
});
test('extends EuiButtonEmpty', () => {
- const component = mount(
+ const component = render(
);
- expect(
- takeMountedSnapshot(component, {
- hasArrayOutput: true,
- })
- ).toMatchSnapshot();
+ expect(component).toMatchSnapshot();
});
});
diff --git a/src/components/color_picker/color_palette_picker/__snapshots__/color_palette_picker.test.tsx.snap b/src/components/color_picker/color_palette_picker/__snapshots__/color_palette_picker.test.tsx.snap
index bdd9ae741e0..4f5462bd6dd 100644
--- a/src/components/color_picker/color_palette_picker/__snapshots__/color_palette_picker.test.tsx.snap
+++ b/src/components/color_picker/color_palette_picker/__snapshots__/color_palette_picker.test.tsx.snap
@@ -404,3 +404,1503 @@ exports[`EuiColorPalettePicker more props are propagated to each option 1`] = `
`;
+
+exports[`EuiColorPalettePicker more props are propagated to each option 2`] = `
+
+
+
+ Palette 1
+
+
+ ,
+ "inputDisplay":
,
+ "value": "paletteFixed",
+ },
+ Object {
+ "className": "paletteLinearClass",
+ "data-test-subj": "gradient-data-test-subj",
+ "dropdownDisplay":
+
+ Linear Gradient
+
+
+
,
+ "inputDisplay":
,
+ "value": "paletteLinear",
+ },
+ Object {
+ "data-test-subj": "gradient-with-stops-data-test-subj",
+ "dropdownDisplay":
+
+ Linear Gradient with stops
+
+
+
,
+ "inputDisplay":
,
+ "value": "paletteLinearStops",
+ },
+ Object {
+ "data-test-subj": "text-data-test-subj",
+ "dropdownDisplay":
+ Plain text as a custom option
+
,
+ "inputDisplay": "Plain text as a custom option",
+ "value": "custom",
+ },
+ ]
+ }
+ readOnly={false}
+ valueOfSelected="paletteFixed"
+ >
+
+
+ Palette 1
+
+
+ ,
+ "inputDisplay":
,
+ "value": "paletteFixed",
+ },
+ Object {
+ "className": "paletteLinearClass",
+ "data-test-subj": "gradient-data-test-subj",
+ "dropdownDisplay":
+
+ Linear Gradient
+
+
+
,
+ "inputDisplay":
,
+ "value": "paletteLinear",
+ },
+ Object {
+ "data-test-subj": "gradient-with-stops-data-test-subj",
+ "dropdownDisplay":
+
+ Linear Gradient with stops
+
+
+
,
+ "inputDisplay":
,
+ "value": "paletteLinearStops",
+ },
+ Object {
+ "data-test-subj": "text-data-test-subj",
+ "dropdownDisplay":
+ Plain text as a custom option
+
,
+ "inputDisplay": "Plain text as a custom option",
+ "value": "custom",
+ },
+ ]
+ }
+ readOnly={false}
+ value="paletteFixed"
+ />
+ }
+ buttonRef={[Function]}
+ className="euiSuperSelect"
+ closePopover={[Function]}
+ display="block"
+ hasArrow={false}
+ isOpen={true}
+ ownFocus={false}
+ panelClassName="euiSuperSelect__popoverPanel"
+ panelPaddingSize="none"
+ popoverRef={[Function]}
+ >
+
+
+
,
+ "inputDisplay":
,
+ "value": "paletteFixed",
+ },
+ Object {
+ "className": "paletteLinearClass",
+ "data-test-subj": "gradient-data-test-subj",
+ "dropdownDisplay":
+
+ Linear Gradient
+
+
+
,
+ "inputDisplay":
,
+ "value": "paletteLinear",
+ },
+ Object {
+ "data-test-subj": "gradient-with-stops-data-test-subj",
+ "dropdownDisplay":
+
+ Linear Gradient with stops
+
+
+
,
+ "inputDisplay":
,
+ "value": "paletteLinearStops",
+ },
+ Object {
+ "data-test-subj": "text-data-test-subj",
+ "dropdownDisplay":
+ Plain text as a custom option
+
,
+ "inputDisplay": "Plain text as a custom option",
+ "value": "custom",
+ },
+ ]
+ }
+ readOnly={false}
+ value="paletteFixed"
+ >
+
+
+
+
+
+
+ ,
+ }
+ }
+ >
+
+ }
+ >
+ Select an option:
+
+ , is selected
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ You are in a form selector of 4 items and must select a single option. Use the up and down keys to navigate or escape to close.
+
+
+
+
+
+
+
+
+
+
+
+
+