Skip to content

Commit deff638

Browse files
committed
test: update chart snap
1 parent d757d9e commit deff638

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/components/__snapshots__/chart.test.tsx.snap

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ exports[`Chart should render the legend name test 1`] = `
5454
<Connect(SpecsParserComponent)>
5555
<SpecsParserComponent specParsed={[Function (anonymous)]} specUnmounted={[Function (anonymous)]}>
5656
<Connect(SpecInstance) debug={true} rendering=\\"svg\\" showLegend={true}>
57-
<SpecInstance debug={true} rendering=\\"svg\\" showLegend={true} upsertSpec={[Function (anonymous)]} removeSpec={[Function (anonymous)]} id=\\"__global__settings___\\" chartType=\\"global\\" specType=\\"settings\\" rotation={0} animateData={true} resizeDebounce={10} tooltip={{...}} externalPointerEvents={{...}} hideDuplicateAxes={false} baseTheme={{...}} brushAxis=\\"x\\" minBrushDelta={2} useDefaultSummary={true} headingLevel=\\"p\\" showLegendExtra={false} legendMaxDepth={Infinity} legendPosition=\\"right\\" />
57+
<SpecInstance debug={true} rendering=\\"svg\\" showLegend={true} upsertSpec={[Function (anonymous)]} removeSpec={[Function (anonymous)]} id=\\"__global__settings___\\" chartType=\\"global\\" specType=\\"settings\\" rotation={0} animateData={true} resizeDebounce={10} tooltip={{...}} externalPointerEvents={{...}} hideDuplicateAxes={false} baseTheme={{...}} brushAxis=\\"x\\" minBrushDelta={2} ariaUseDefaultSummary={true} ariaLabelHeadingLevel=\\"h2\\" showLegendExtra={false} legendMaxDepth={Infinity} legendPosition=\\"right\\" />
5858
</Connect(SpecInstance)>
5959
<Connect(SpecInstance) id=\\"test\\" data={{...}}>
6060
<SpecInstance id=\\"test\\" data={{...}} upsertSpec={[Function (anonymous)]} removeSpec={[Function (anonymous)]} chartType=\\"xy_axis\\" specType=\\"series\\" seriesType=\\"bar\\" groupId=\\"__global__\\" xScaleType=\\"ordinal\\" yScaleType=\\"linear\\" xAccessor=\\"x\\" yAccessors={{...}} yScaleToDataExtent={false} hideInLegend={false} enableHistogramMode={false} />
@@ -72,16 +72,17 @@ exports[`Chart should render the legend name test 1`] = `
7272
</Crosshair>
7373
</Connect(Crosshair)>
7474
<Connect(XYChart) forwardStageRef={{...}}>
75-
<XYChart forwardStageRef={{...}} initialized={true} isChartEmpty={false} debug={true} geometries={{...}} geometriesIndex={{...}} theme={{...}} chartContainerDimensions={{...}} highlightedLegendItem={[undefined]} rotation={0} renderingArea={{...}} chartTransform={{...}} axesSpecs={{...}} perPanelAxisGeoms={{...}} perPanelGridLines={{...}} axesStyles={{...}} annotationDimensions={{...}} annotationSpecs={{...}} panelGeoms={{...}} seriesTypes={{...}} accessibilityDescription={[undefined]} useDefaultSummary={true} chartId=\\"chart1\\" ariaLabel={[undefined]} ariaLabelledBy={[undefined]} headingLevel=\\"p\\" onChartRendered={[Function (anonymous)]}>
76-
<figure aria-describedby=\\"undefined chart1--series-types\\">
75+
<XYChart forwardStageRef={{...}} initialized={true} isChartEmpty={false} debug={true} geometries={{...}} geometriesIndex={{...}} theme={{...}} chartContainerDimensions={{...}} highlightedLegendItem={[undefined]} rotation={0} renderingArea={{...}} chartTransform={{...}} axesSpecs={{...}} perPanelAxisGeoms={{...}} perPanelGridLines={{...}} axesStyles={{...}} annotationDimensions={{...}} annotationSpecs={{...}} panelGeoms={{...}} seriesTypes={{...}} a11ySettings={{...}} onChartRendered={[Function (anonymous)]}>
76+
<figure aria-labelledby={[undefined]} aria-describedby=\\"chart1--defaultSummary\\">
7777
<canvas className=\\"echCanvasRenderer\\" width={150} height={200} style={{...}} role=\\"presentation\\">
78-
<ChartLabel id={[undefined]} label={[undefined]} heading=\\"p\\" />
7978
<div className=\\"echScreenReaderOnly\\">
80-
<dl>
79+
<Label label={[undefined]} labelId={[undefined]} labelHeadingLevel=\\"h2\\" description={[undefined]} descriptionId=\\"chart1--defaultSummary\\" defaultSummaryId=\\"chart1--defaultSummary\\" />
80+
<Description label={[undefined]} labelId={[undefined]} labelHeadingLevel=\\"h2\\" description={[undefined]} descriptionId=\\"chart1--defaultSummary\\" defaultSummaryId=\\"chart1--defaultSummary\\" />
81+
<dl id=\\"chart1--defaultSummary\\">
8182
<dt>
8283
Chart type
8384
</dt>
84-
<dd id=\\"chart1--series-types\\">
85+
<dd>
8586
bar chart
8687
</dd>
8788
</dl>

0 commit comments

Comments
 (0)