Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve heatmap issue and update snapshots #601

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -870,7 +869,6 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -1332,7 +1330,6 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -2025,7 +2022,6 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
],
},
"fulllabel": "Time series",
"icon": [Function],
"icontype": "visLine",
"id": "line",
"label": "Time series",
Expand Down Expand Up @@ -2548,7 +2544,6 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
],
},
"fulllabel": "Time series",
"icon": [Function],
"icontype": "visLine",
"id": "line",
"label": "Time series",
Expand Down Expand Up @@ -3085,7 +3080,6 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
],
},
"fulllabel": "Time series",
"icon": [Function],
"icontype": "visLine",
"id": "line",
"label": "Time series",
Expand Down Expand Up @@ -3767,7 +3761,6 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
"fillopacity": 70,
"fulllabel": "Horizontal bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarHorizontalStacked",
"id": "horizontal_bar",
"label": "Horizontal bar",
Expand Down Expand Up @@ -4222,7 +4215,6 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
"fillopacity": 70,
"fulllabel": "Horizontal bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarHorizontalStacked",
"id": "horizontal_bar",
"label": "Horizontal bar",
Expand Down Expand Up @@ -4684,7 +4676,6 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
"fillopacity": 70,
"fulllabel": "Horizontal bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarHorizontalStacked",
"id": "horizontal_bar",
"label": "Horizontal bar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -781,7 +780,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"iconType": "visBarVerticalStacked",
"icontype": "visBarVerticalStacked",
"id": "bar",
Expand Down Expand Up @@ -1080,7 +1078,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Horizontal bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarHorizontalStacked",
"id": "horizontal_bar",
"label": "Horizontal bar",
Expand Down Expand Up @@ -1408,7 +1405,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
],
},
"fulllabel": "Time series",
"icon": [Function],
"icontype": "visLine",
"id": "line",
"label": "Time series",
Expand Down Expand Up @@ -1649,7 +1645,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
],
},
"fulllabel": "Pie",
"icon": [Function],
"icontype": "visPie",
"id": "pie",
"label": "Pie",
Expand Down Expand Up @@ -2089,7 +2084,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
],
},
"fulllabel": "Hubble",
"icon": [Function],
"icontype": "heatmap",
"id": "heatmap",
"label": "Heatmap",
Expand Down Expand Up @@ -2142,7 +2136,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
],
},
"fulllabel": "Markdown",
"icon": [Function],
"icontype": "visText",
"id": "text",
"label": "Markdown",
Expand Down Expand Up @@ -2470,7 +2463,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"iconType": "visBarVerticalStacked",
"icontype": "visBarVerticalStacked",
"id": "bar",
Expand Down Expand Up @@ -2801,7 +2793,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"iconType": "visBarVerticalStacked",
"icontype": "visBarVerticalStacked",
"id": "bar",
Expand Down Expand Up @@ -3138,7 +3129,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
fillopacity={70}
fulllabel="Vertical bar"
groupwidth={0.7}
icon={[Function]}
iconType="visBarVerticalStacked"
icontype="visBarVerticalStacked"
id="bar"
Expand Down Expand Up @@ -3408,7 +3398,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"iconType": "visBarVerticalStacked",
"icontype": "visBarVerticalStacked",
"id": "bar",
Expand Down Expand Up @@ -3746,7 +3735,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
fillopacity={70}
fulllabel="Vertical bar"
groupwidth={0.7}
icon={[Function]}
iconType="visBarVerticalStacked"
icontype="visBarVerticalStacked"
id="bar"
Expand Down Expand Up @@ -4053,7 +4041,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
fillopacity={70}
fulllabel="Vertical bar"
groupwidth={0.7}
icon={[Function]}
icontype="visBarVerticalStacked"
id="bar"
labelangle={0}
Expand Down Expand Up @@ -4978,7 +4965,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -5755,7 +5741,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -6294,7 +6279,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -7115,7 +7099,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -7668,7 +7651,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -8488,7 +8470,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -9807,7 +9788,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down Expand Up @@ -11147,7 +11127,6 @@ exports[`Config panel component Renders config panel with visualization data 1`]
"fillopacity": 70,
"fulllabel": "Vertical bar",
"groupwidth": 0.7,
"icon": [Function],
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,95 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Shared components Renders empty placeholder component 1`] = `
<EmptyPlaceholder
icon={[Function]}
>
<EuiText
className="lnsChart__empty"
color="subdued"
data-test-subj="vizWorkspace__noData"
size="xs"
textAlign="center"
>
<div
className="euiText euiText--extraSmall lnsChart__empty"
data-test-subj="vizWorkspace__noData"
>
<EuiTextAlign
textAlign="center"
>
<div
className="euiTextAlign euiTextAlign--center"
>
<EuiTextColor
color="subdued"
component="div"
>
<div
className="euiTextColor euiTextColor--subdued"
>
<EuiIcon
color="subdued"
size="xxl"
type={[Function]}
>
<LensIconChartBar
aria-hidden={true}
className="euiIcon euiIcon--xxLarge euiIcon--subdued"
focusable="false"
role="img"
style={null}
>
<svg
aria-hidden={true}
className="euiIcon euiIcon--xxLarge euiIcon--subdued"
fill="none"
focusable="false"
height={22}
role="img"
style={null}
viewBox="0 0 30 22"
width={30}
xmlns="http://www.w3.org/2000/svg"
>
<path
className="lensChartIcon__subdued"
d="M5 7a1 1 0 011 1v13a1 1 0 01-1 1H1a1 1 0 01-1-1V8a1 1 0 011-1h4zm16-7a1 1 0 011 1v20a1 1 0 01-1 1h-4a1 1 0 01-1-1V1a1 1 0 011-1h4z"
/>
<path
className="lensChartIcon__accent"
d="M13 11a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1v-9a1 1 0 011-1h4zm16-7a1 1 0 011 1v16a1 1 0 01-1 1h-4a1 1 0 01-1-1V5a1 1 0 011-1h4z"
/>
</svg>
</LensIconChartBar>
</EuiIcon>
<EuiSpacer
size="l"
>
<div
className="euiSpacer euiSpacer--l"
/>
</EuiSpacer>
<p>
<FormattedMessage
defaultMessage="No data found"
id="visualization_noData"
values={Object {}}
>
<span>
No data found
</span>
</FormattedMessage>
</p>
</div>
</EuiTextColor>
</div>
</EuiTextAlign>
</div>
</EuiText>
</EmptyPlaceholder>
`;

exports[`Shared components Renders tool bar button component 1`] = `
<ToolbarButton
fontWeight="bold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,11 @@ import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
import { EmptyPlaceholder } from '../empty_placeholder';
import { LensIconChartBar } from '../../../../../visualizations/assets/chart_bar';
import { ToolbarButton } from '../toolbar_button';

describe('Shared components', () => {
configure({ adapter: new Adapter() });

it('Renders empty placeholder component', async () => {
const wrapper = mount(<EmptyPlaceholder icon={LensIconChartBar} />);

wrapper.update();

await waitFor(() => {
expect(wrapper).toMatchSnapshot();
});
});

it('Renders tool bar button component', async () => {
const handleClick = jest.fn();
const WrappedComponent = () => <div>testing</div>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { PlotlyVizEditor } from './plotly_viz_editor';
export { PlotlyEditorActionsMenu } from './plotly_actions';
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @ts-ignore

import hjson from 'hjson';
import defaultLayoutSpec from '!!raw-loader!./default.layout.spec.hjson';
import defaultDataSpec from '!!raw-loader!./default.data.spec.hjson';

Expand Down
Loading
Loading