,
@@ -201,12 +201,12 @@ Array [
,
@@ -252,12 +252,12 @@ Array [
,
@@ -351,12 +351,12 @@ Array [
,
@@ -407,12 +407,12 @@ Array [
,
diff --git a/src/components/collapsible_nav/collapsible_nav.test.tsx b/src/components/collapsible_nav/collapsible_nav.test.tsx
index 32f0c401bfa..980559a5562 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 } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
+import { render, mount } from 'enzyme';
+import { requiredProps, takeMountedSnapshot } from '../../test';
import { EuiCollapsibleNav } from './collapsible_nav';
@@ -33,20 +33,28 @@ const propsNeededToRender = { id: 'id', isOpen: true };
describe('EuiCollapsibleNav', () => {
test('is rendered', () => {
- const component = render(
+ const component = mount(
);
- expect(component).toMatchSnapshot();
+ expect(
+ takeMountedSnapshot(component, {
+ hasArrayOutput: true,
+ })
+ ).toMatchSnapshot();
});
describe('props', () => {
test('onClose', () => {
- const component = render(
+ const component = mount(
{}} />
);
- expect(component).toMatchSnapshot();
+ expect(
+ takeMountedSnapshot(component, {
+ hasArrayOutput: true,
+ })
+ ).toMatchSnapshot();
});
test('isDocked', () => {
@@ -58,23 +66,31 @@ describe('EuiCollapsibleNav', () => {
});
test('dockedBreakpoint', () => {
- const component = render(
+ const component = mount(
);
- expect(component).toMatchSnapshot();
+ expect(
+ takeMountedSnapshot(component, {
+ hasArrayOutput: true,
+ })
+ ).toMatchSnapshot();
});
test('button', () => {
- const component = render(
+ const component = mount(
} />
);
- expect(component).toMatchSnapshot();
+ expect(
+ takeMountedSnapshot(component, {
+ hasArrayOutput: true,
+ })
+ ).toMatchSnapshot();
});
test('showButtonIfDocked', () => {
- const component = render(
+ const component = mount(
}
@@ -83,39 +99,55 @@ describe('EuiCollapsibleNav', () => {
/>
);
- expect(component).toMatchSnapshot();
+ expect(
+ takeMountedSnapshot(component, {
+ hasArrayOutput: true,
+ })
+ ).toMatchSnapshot();
});
test('can alter mask props with maskProps without throwing error', () => {
- const component = render(
+ const component = mount(
);
- expect(component).toMatchSnapshot();
+ expect(
+ takeMountedSnapshot(component, {
+ hasArrayOutput: true,
+ })
+ ).toMatchSnapshot();
});
});
describe('close button', () => {
test('can be hidden', () => {
- const component = render(
+ const component = mount(
);
- expect(component).toMatchSnapshot();
+ expect(
+ takeMountedSnapshot(component, {
+ hasArrayOutput: true,
+ })
+ ).toMatchSnapshot();
});
test('extends EuiButtonEmpty', () => {
- const component = render(
+ const component = mount(
);
- expect(component).toMatchSnapshot();
+ expect(
+ takeMountedSnapshot(component, {
+ hasArrayOutput: true,
+ })
+ ).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 4f5462bd6dd..bdd9ae741e0 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,1503 +404,3 @@ 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.
-
-
-
-
-
-
-
-
-
-
-
-
-